[SCM] Debian Live initramfs hook branch, master, updated. 1.139.1-2-19-g79d1725
Marco Amadori
amadorim at vdavda.com
Wed Sep 17 06:52:05 UTC 2008
The following commit has been merged in the master branch:
commit 24891a50c617a1cfd7500e1cf058ce61c38ccdbb
Author: Marco Amadori <amadorim at vdavda.com>
Date: Tue Sep 16 10:34:29 2008 +0200
Skipped some runtime duplicated execution.
Signed-off-by: Marco Amadori <amadorim at vdavda.com>
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 990c088..0b9bd5f 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -269,6 +269,7 @@ try_mount ()
dev="${1}"
mountp="${2}"
opts="${3}"
+ fstype="${4}"
old_mountp="$(where_is_mounted ${dev})"
@@ -277,7 +278,11 @@ try_mount ()
mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed"
mount -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}"
else
- mount -t $(get_fstype "${dev}") -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}"
+ if [ -z "${fstype}" ]
+ then
+ fstype=$(get_fstype "${dev}")
+ fi
+ mount -t "${fstype}" -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}"
fi
}
@@ -336,7 +341,7 @@ find_files ()
if is_supported_fs ${devfstype}
then
mkdir -p "${snap_backing}"
- try_mount "${devname}" "${snap_backing}" "ro"
+ try_mount "${devname}" "${snap_backing}" "ro" ${devfstype}
for filename in ${filenames}
do
--
Debian Live initramfs hook
More information about the debian-live-changes
mailing list