dmsquash-live-root: load filesystem modules before mounting loop images
might prevent https://bugzilla.redhat.com/show_bug.cgi?id=735199master
parent
380b8b516e
commit
baa5c11363
|
@ -54,11 +54,13 @@ mkdir -m 0755 -p /run/initramfs/live
|
||||||
if [ -f $livedev ]; then
|
if [ -f $livedev ]; then
|
||||||
# no mount needed - we've already got the LiveOS image in initramfs
|
# no mount needed - we've already got the LiveOS image in initramfs
|
||||||
# check filesystem type and handle accordingly
|
# check filesystem type and handle accordingly
|
||||||
case `det_img_fs $livedev` in
|
fstype=$(det_img_fs $livedev)
|
||||||
|
case $fstype in
|
||||||
squashfs) SQUASHED=$livedev;;
|
squashfs) SQUASHED=$livedev;;
|
||||||
auto) die "cannot mount live image (unknown filesystem type)" ;;
|
auto) die "cannot mount live image (unknown filesystem type)" ;;
|
||||||
*) FSIMG=$livedev ;;
|
*) FSIMG=$livedev ;;
|
||||||
esac
|
esac
|
||||||
|
[ -e /sys/fs/$fstype ] || modprobe $fstype
|
||||||
else
|
else
|
||||||
mount -n -t $fstype -o ${liverw:-ro} $livedev /run/initramfs/live
|
mount -n -t $fstype -o ${liverw:-ro} $livedev /run/initramfs/live
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
|
Loading…
Reference in New Issue