]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dmsquash-live): live:/dev/*
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 1 Jan 2023 03:39:17 +0000 (03:39 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 3 Jan 2023 14:09:12 +0000 (15:09 +0100)
fix a bug introduced in 71cfa2e22

make sure root is set correctly for both of the following cases
 - "root=live:/dev/*"
 - "rd.live.image root=/dev/*"

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

index 1a316a22586b865307463ec49b39aa6d1657007b..de910b31d601e0f5b2dae8aa8e0dc9c546222229 100755 (executable)
@@ -34,6 +34,7 @@ case "$liveroot" in
         rootok=1
         ;;
     live:/dev/*)
+        root="live:${root#live:}"
         rootok=1
         ;;
     live:/*.[Ii][Mm][Gg] | /*.[Ii][Mm][Gg])