diff options
Diffstat (limited to 'tools/XBMCLive/live-initramfs/scripts/live-bottom/16umountfs')
-rwxr-xr-x | tools/XBMCLive/live-initramfs/scripts/live-bottom/16umountfs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/XBMCLive/live-initramfs/scripts/live-bottom/16umountfs b/tools/XBMCLive/live-initramfs/scripts/live-bottom/16umountfs new file mode 100755 index 0000000000..64ad99da0a --- /dev/null +++ b/tools/XBMCLive/live-initramfs/scripts/live-bottom/16umountfs @@ -0,0 +1,38 @@ +#!/bin/sh + +#set -e + +# initramfs-tools header + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +# live-initramfs header + +. /live.vars + +. /scripts/live-functions + +log_begin_msg "Disabling umountfs for live specific filesystems" + +# live-initramfs script + +if [ -e /root/etc/init.d/umountfs ] +then + sed -i -e 's#pioodl $TMPFS_MTPTS)#pioodl $TMPFS_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live)#' \ + -e 's#pioodl $REG_MTPTS)#pioodl $REG_MTPTS | sed -e "s@\\ @\\n@" | grep -v ^/live | grep -v ^/filesystem) /#' \ + /root/etc/init.d/umountfs +fi + +log_end_msg |