From: Daniel Baumann Date: Thu, 5 Mar 2009 10:30:17 +0000 (+0100) Subject: Adding hack to remove live specific filesystems from umounfs initscript (Closes:... X-Git-Tag: debian/2.0.15-1~339 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=inline;h=902270d69d31c23c4798e225c3b0af75690a1c65;p=live-boot-grml.git Adding hack to remove live specific filesystems from umounfs initscript (Closes: #506410, #515718). --- 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