]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dmsquash-live): correct det_img_fs implementation
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 30 Apr 2026 12:26:34 +0000 (08:26 -0400)
committerdevkontrol <dev@kontrol.dev>
Thu, 30 Apr 2026 12:51:01 +0000 (08:51 -0400)
The `=` is being treated as an assignment operator, not part of a
suffix-strip pattern, so the trimming never happens.

Fix it by separate them.

Follow-up for 7c0298a

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

index cf816738700220aa102f65595aed8229babb521c..3702a91c791e7ce2beface809b53f4d4f9221470 100755 (executable)
@@ -99,7 +99,7 @@ det_img_fs() {
     # avoid blkid options to maintain compatibility with busybox
     devicetype=$(blkid "$1")
     fstype="${devicetype#*TYPE=\"}"
-    echo "${fstype=%%\"*}"
+    echo "${fstype%%\"*}"
 }
 
 CMDLINE=$(getcmdline)