From: Laszlo Gombos Date: Sat, 12 Mar 2022 18:01:49 +0000 (+0000) Subject: fix(dmsquash-live): mount live device with the correct type X-Git-Tag: 057~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08ed7b2d0035eaa699c139bc9719f90190f6ffc1;p=thirdparty%2Fdracut.git fix(dmsquash-live): mount live device with the correct type fstype is not the correct type for the live device. --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh index 950be2d3c..abc68407f 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh @@ -88,7 +88,7 @@ else # no mount needed - we've already got the LiveOS image in $livedev SQUASHED=$livedev elif [ "$livedev_fstype" != "ntfs" ]; then - if ! mount -n -t "$fstype" -o "${liverw:-ro}" "$livedev" /run/initramfs/live; then + if ! mount -n -t "$livedev_fstype" -o "${liverw:-ro}" "$livedev" /run/initramfs/live; then die "Failed to mount block device of live image" exit 1 fi