[SCM] Debian Live initramfs hook branch, master, updated. 1.156.1-1-4-g6cd386d
Daniel Baumann
daniel at debian.org
Thu Mar 5 10:34:30 UTC 2009
The following commit has been merged in the master branch:
commit 6cd386dd115655eb3155f3aa478ab10523e029ea
Author: Daniel Baumann <daniel at debian.org>
Date: Thu Mar 5 11:30:17 2009 +0100
Adding hack to remove live specific filesystems from umounfs initscript.
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/16umountfs
similarity index 53%
copy from scripts/live-bottom/99hook
copy to scripts/live-bottom/16umountfs
index 17895ca..13c3b4c 100755
--- a/scripts/live-bottom/99hook
+++ b/scripts/live-bottom/16umountfs
@@ -20,24 +20,17 @@ esac
# live-initramfs header
-if [ -z "${HOOK}" ]
-then
- exit 0
-fi
+. /live.vars
. /scripts/live-functions
-log_begin_msg "Executing custom hook script"
+log_begin_msg "Disabling umountfs for live specific filesystems"
# live-initramfs script
-cd /root
-chroot /root wget "${HOOK}"
-
-FILE="$(basename ${HOOK})"
-
-chmod 0755 "${FILE}"
-./"${FILE}"
-rm -f "${FILE}"
+if [ -e /root/etc/init.d/umountfs ]
+then
+ sed -i -e 's|TMPFS_MTPTS="$(pioodl $TMPFS_MTPTS)"|TMPFS_MTPTS="/tmp"|' /root/etc/init.d/umountfs
+fi
log_end_msg
--
Debian Live initramfs hook
More information about the debian-live-changes
mailing list