Blame SOURCES/0109-dmsquash-live-dmsquash-liveiso-genrules.sh-s-loop0-l.patch

18971c
From 5676a6d877fec50cf969369045788ff3ac59fdc0 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Tue, 28 Jan 2014 18:33:36 +0100
18971c
Subject: [PATCH] dmsquash-live/dmsquash-liveiso-genrules.sh:
18971c
 s/loop0/loop-control/
18971c
18971c
If loop is a kernel module, /dev/loop0 will never show up as a udev
18971c
event, if the loop module is not manually loaded somewhere.
18971c
---
18971c
 modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh b/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
18971c
index 30ea1805..0f913d79 100755
18971c
--- a/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
18971c
+++ b/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
18971c
@@ -3,7 +3,7 @@
18971c
 # ex: ts=8 sw=4 sts=4 et filetype=sh
18971c
 if [ "${root%%:*}" = "liveiso" ]; then
18971c
     {
18971c
-        printf 'KERNEL=="loop0", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root `/sbin/losetup -f --show %s`"\n' \
18971c
+        printf 'KERNEL=="loop-control", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root `/sbin/losetup -f --show %s`"\n' \
18971c
             ${root#liveiso:}
18971c
     } >> /etc/udev/rules.d/99-liveiso-mount.rules
18971c
 fi