Adding hack to remove live specific filesystems from umounfs initscript (Closes:...
authorDaniel Baumann <daniel@debian.org>
Thu, 5 Mar 2009 10:30:17 +0000 (11:30 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:04 +0000 (17:48 +0100)
scripts/live-bottom/16umountfs [new file with mode: 0755]

diff --git a/scripts/live-bottom/16umountfs b/scripts/live-bottom/16umountfs
new file mode 100755 (executable)
index 0000000..64ad99d
--- /dev/null
@@ -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