From 78c3484acd8b3e43f2d0823d560346c1cbd9db8d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 11 Nov 2008 18:14:20 +0100 Subject: [PATCH] Merging casper 1.148. --- docs/ChangeLog.casper | 7 +++++++ scripts/live-helpers | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 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}" ]