]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash: Ensure the 'loop' kernel module is included and loaded.
authorColin Guthrie <colin@mageia.org>
Sun, 8 Jan 2012 21:32:05 +0000 (21:32 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:34:17 +0000 (13:34 +0100)
modules.d/90dmsquash-live/module-setup.sh
modules.d/90dmsquash-live/parse-dmsquash-live.sh

index de1eed607f307231185a952fc1b7fe6299f33024..2a7988af30014157f03641e383b5009766363340 100755 (executable)
@@ -16,7 +16,7 @@ depends() {
 }
 
 installkernel() {
-    instmods squashfs
+    instmods squashfs loop
 }
 
 install() {
index a733144c42143191bbc2f76186c820f82548f1aa..920647ea0e818c61e6be74dac658df260934194e 100755 (executable)
@@ -17,6 +17,8 @@ fi
 
 [ "${liveroot%%:*}" = "live" ] || return
 
+modprobe -q loop
+
 case "$liveroot" in
     live:LABEL=*|LABEL=*) \
         root="${root#live:}"