[SCM] live-config branch, debian-old-3.0, updated. debian/3.0.5-1-3-gbb321e6
Daniel Baumann
daniel at debian.org
Wed Sep 26 11:26:44 UTC 2012
The following commit has been merged in the debian-old-3.0 branch:
commit dd7d65077e4d3e715bf338db20acdf4577362719
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Sep 26 13:15:22 2012 +0200
Remounting any persistence devices read-only on shutdown (Closes: #688784).
diff --git a/bin/boot-init.sh b/bin/boot-init.sh
index ba99107..edcfaac 100755
--- a/bin/boot-init.sh
+++ b/bin/boot-init.sh
@@ -156,6 +156,12 @@ done
mount -o remount,ro /live/overlay > /dev/null 2>&1
+# Remounting any persistence devices read-only
+for MOUNT in $(awk '/\/live\/persistence/ { print $2 }' /proc/mounts)
+do
+ mount -o remount,ro ${MOUNT} > /dev/null 2>&1 || true
+done
+
# Check if we need to eject the drive
if grep -qs "cdrom-detect/eject=false" /proc/cmdline || \
grep -qs "noeject" /proc/cmdline || \
--
live-config
More information about the debian-live-changes
mailing list