From e74b9f58ceedb484b649a10fd1d40aa225780e4a Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 28 Jul 2016 16:00:44 +0200 Subject: liveinit: warn if a module could not be mounted. --- liveinit | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'liveinit') diff --git a/liveinit b/liveinit index 607db6d..6b540aa 100755 --- a/liveinit +++ b/liveinit @@ -503,10 +503,15 @@ if [ "$RESCUE" = "" ]; then MODLOC=$(find_modloc ${MODULE} /mnt/media) mkdir /mnt/live/modules/${MODBASE} mount -t squashfs -o loop ${MODLOC} /mnt/live/modules/${MODBASE} - RODIRS=":/mnt/live/modules/${MODBASE}${RODIRS}" - # 0099-* are the Live customizations, exclude those for setup2hd: - if ! echo ${MODBASE} | grep -q ^0099 ; then - FS2HD=":/mnt/live/modules/${MODBASE}${FS2HD}" + if [ $? -eq 0 ]; then + RODIRS=":/mnt/live/modules/${MODBASE}${RODIRS}" + # 0099-* are the Live customizations, exclude those for setup2hd: + if ! echo ${MODBASE} | grep -q ^0099 ; then + FS2HD=":/mnt/live/modules/${MODBASE}${FS2HD}" + fi + else + echo "${MARKER}: Failed to mount $SUBSYS module '${MODBASE}', excluding it from the overlay." + echo "$MODBASE" >> /mnt/live/modules/failed fi done fi -- cgit v1.2.3