summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-08-25 13:12:57 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:01 +0100
commit059acaa9da49953b091d220ed52de1d252c61ae5 (patch)
tree259958bcc5b95c17fa76f24f7fe9aa6b5e9beeed
parent9c7e05ec599f1cae40b240c4e49a5cfe86b7de5d (diff)
downloadlive-boot-059acaa9da49953b091d220ed52de1d252c61ae5.tar.gz
live-boot-059acaa9da49953b091d220ed52de1d252c61ae5.zip
If the filesystem type of the rootfs cannot be automatically detected, we try to assume it from the extension of the imagefile we have found. Thanks to Jordi Pujol <jordi_pujol@telefonica.net> (Closes: #460456).
-rwxr-xr-xscripts/live6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index 0363daf..ec5f6e8 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1040,6 +1040,12 @@ setup_unionfs ()
panic "Unknown file system type on ${backdev} (${image})"
fi
+ if [ -z "${fstype}" ]
+ then
+ fstype="${imagename##*.}"
+ log_warning_msg "Unknown file system type on ${backdev} (${image}), assuming ${fstype}."
+ fi
+
mkdir -p "${croot}/${imagename}"
log_begin_msg "Mounting \"${image}\" on \"${croot}${imagename}\" via \"${backdev}\""
mount -n -t "${fstype}" -o ro,noatime "${backdev}" "${croot}/${imagename}" || panic "Can not mount ${backdev} (${image}) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}"