[SCM] Debian Live initramfs hook branch, master, updated. 1.139.1-4-14-gb19ba0a

Daniel Baumann daniel at debian.org
Tue Nov 11 17:20:10 UTC 2008


The following commit has been merged in the master branch:
commit aca24987672b1ddf917e520e95855646eaa179e3
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Nov 11 18:14:20 2008 +0100

    Merging casper 1.148.

diff --git a/docs/ChangeLog.casper b/docs/ChangeLog.casper
index 73bb17f..e15c933 100644
--- a/docs/ChangeLog.casper
+++ b/docs/ChangeLog.casper
@@ -1,3 +1,10 @@
+casper (1.148) intrepid; urgency=low
+
+  * Skip remounting read-only in try_mount as it's unnecessary and
+    breaks persistence.  Thanks James Westby (LP: #274076).
+
+ -- Evan Dandrea <evand at ubuntu.com>  Wed, 15 Oct 2008 13:13:38 -0400
+
 casper (1.147) intrepid; urgency=low
 
   * Fix path to Kubuntu help file in 10adduser
diff --git a/scripts/live-helpers b/scripts/live-helpers
index a935001..f6b8b8b 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -275,7 +275,11 @@ try_mount ()
 
 	if [ -n "${old_mountp}" ]
 	then
-		mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed"
+		if [ "${opts}" != "ro" ]
+		then
+			mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed"
+		fi
+
 		mount -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}"
 	else
 		if [ -z "${fstype}" ]

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list