From: Daniel Baumann Date: Mon, 25 Aug 2008 11:12:57 +0000 (+0200) Subject: If the filesystem type of the rootfs cannot be automatically detected, we try to... X-Git-Tag: debian/2.0.15-1~450 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=059acaa9da49953b091d220ed52de1d252c61ae5;p=live-boot-grml.git 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 (Closes: #460456). --- 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}"