]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: addresss the device via it's symlink
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Oct 2014 09:16:26 +0000 (11:16 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Oct 2014 09:16:26 +0000 (11:16 +0200)
Otherwise multipath parts might be passed, before it's assembled.

https://bugzilla.redhat.com/show_bug.cgi?id=1152948

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

index cf68f5a907fb244cb7718111c08272164d99ce77..e0c1da3cb96182196f8f896b11ed27dbc9ed481d 100755 (executable)
@@ -3,10 +3,10 @@
 case "$root" in
   live:/dev/*)
     {
-        printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
-            ${root#live:/dev/}
-        printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
-            ${root#live:/dev/}
+        printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
+            "${root#live:/dev/}" "${root#live:}"
+        printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
+            "${root#live:/dev/}" "${root#live:}"
     } >> /etc/udev/rules.d/99-live-squash.rules
     wait_for_dev -n "${root#live:}"
   ;;