summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-07-28 16:00:44 +0200
committer Eric Hameleers <alien@slackware.com>2016-07-28 16:00:44 +0200
commite74b9f58ceedb484b649a10fd1d40aa225780e4a (patch)
tree8e28c107d3e153582123ab800a8ce0be34a01854 /liveinit
parent47e5cc4b4a0fa676f38f930ab8dac3e5057ccbf1 (diff)
downloadliveslak-e74b9f58ceedb484b649a10fd1d40aa225780e4a.tar.gz
liveslak-e74b9f58ceedb484b649a10fd1d40aa225780e4a.tar.xz
liveinit: warn if a module could not be mounted.
Diffstat (limited to 'liveinit')
-rwxr-xr-xliveinit13
1 files changed, 9 insertions, 4 deletions
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