]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dmsquash-live): mount live device with the correct type
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 12 Mar 2022 18:01:49 +0000 (18:01 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 29 Apr 2022 22:12:05 +0000 (22:12 +0000)
fstype is not the correct type for the live device.

modules.d/90dmsquash-live/dmsquash-live-root.sh

index 950be2d3cd62c0093e18d24c0d590ba67e7cb398..abc68407f40c2b36a27a27b14b46f605ce0588e6 100755 (executable)
@@ -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