From 059acaa9da49953b091d220ed52de1d252c61ae5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Aug 2008 13:12:57 +0200 Subject: [PATCH] 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). --- scripts/live | 6 ++++++ 1 file changed, 6 insertions(+) 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}" -- 2.1.4