]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live/dmsquash-liveiso-genrules.sh: s/loop0/loop-control/
authorHarald Hoyer <harald@redhat.com>
Tue, 28 Jan 2014 17:33:36 +0000 (18:33 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 Jan 2014 17:33:36 +0000 (18:33 +0100)
If loop is a kernel module, /dev/loop0 will never show up as a udev
event, if the loop module is not manually loaded somewhere.

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

index 30ea1805db957572744b4314be863d114b870236..0f913d7994b017cf6eaec7337a676f9f91d5977e 100755 (executable)
@@ -3,7 +3,7 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 if [ "${root%%:*}" = "liveiso" ]; then
     {
-        printf 'KERNEL=="loop0", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root `/sbin/losetup -f --show %s`"\n' \
+        printf 'KERNEL=="loop-control", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root `/sbin/losetup -f --show %s`"\n' \
             ${root#liveiso:}
     } >> /etc/udev/rules.d/99-liveiso-mount.rules
 fi