X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-overlay.sh;h=d1b9cef44d3479c3eb4cf1d5711c38c82c6ee7bf;hb=269069291cc11027e3fba8e295d272ec84577604;hp=9282276174be68fe7d6755579cf77dfc4b53365f;hpb=db25153a257eda7e396f89b522b2f68ae3f21ddd;p=live-boot-grml.git diff --git a/components/9990-overlay.sh b/components/9990-overlay.sh index 9282276..d1b9cef 100755 --- a/components/9990-overlay.sh +++ b/components/9990-overlay.sh @@ -117,6 +117,8 @@ setup_unionfs () log_begin_msg "Mounting \"${image}\" on \"${mpoint}\" via \"${backdev}\"" mount -t "${fstype}" -o ro,noatime "${backdev}" "${mpoint}" || panic "Can not mount ${backdev} (${image}) on ${mpoint}" log_end_msg + else + log_warning_msg "Could not find image '${image}'. Most likely it is listed in a .module file, perhaps by mistake." fi done else @@ -272,7 +274,7 @@ setup_unionfs () panic "only one RO file system supported with exposedroot: ${rootfslist}" fi - mount --bind ${rootfs} ${rootmnt} || \ + mount -o bind ${rootfs} ${rootmnt} || \ panic "bind mount of ${rootfs} failed" if [ -z "${SKIP_UNION_MOUNTS}" ] @@ -355,8 +357,8 @@ setup_unionfs () done fi - # ensure that a potentially stray tmpfs gets removed - # otherways, initramfs-tools is unable to remove /live - # and fails to boot - umount /live/overlay > /dev/null 2>&1 || true + # ensure that a potentially stray tmpfs gets removed + # otherways, initramfs-tools is unable to remove /live + # and fails to boot + umount /live/overlay > /dev/null 2>&1 || true }