diff options
| author | Daniel Baumann <daniel@debian.org> | 2009-03-05 11:30:17 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:04 +0100 |
| commit | 902270d69d31c23c4798e225c3b0af75690a1c65 (patch) | |
| tree | 600df4750fcd359f060c0fb18202cd2c432d73e4 /scripts | |
| parent | 286b9e73a78f2b545d09d512db05c4340b25ccb2 (diff) | |
| download | live-boot-902270d69d31c23c4798e225c3b0af75690a1c65.tar.gz live-boot-902270d69d31c23c4798e225c3b0af75690a1c65.zip | |
Adding hack to remove live specific filesystems from umounfs initscript (Closes: #506410, #515718).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/16umountfs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/live-bottom/16umountfs b/scripts/live-bottom/16umountfs new file mode 100755 index 0000000..64ad99d --- /dev/null +++ b/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 |
