Blame 0021-dmsquash-Ensure-the-loop-kernel-module-is-included-a.patch

Harald Hoyer 3957aa
From 09ee7234b60354a446070b2d4f0df480e3684e6a Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Colin Guthrie <colin@mageia.org>
Harald Hoyer 3957aa
Date: Sun, 8 Jan 2012 21:32:05 +0000
Harald Hoyer 3957aa
Subject: [PATCH] dmsquash: Ensure the 'loop' kernel module is included and
Harald Hoyer 3957aa
 loaded.
Harald Hoyer 3957aa
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 modules.d/90dmsquash-live/module-setup.sh        |    2 +-
Harald Hoyer 3957aa
 modules.d/90dmsquash-live/parse-dmsquash-live.sh |    2 ++
Harald Hoyer 3957aa
 2 files changed, 3 insertions(+), 1 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/modules.d/90dmsquash-live/module-setup.sh b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 3957aa
index de1eed6..2a7988a 100755
Harald Hoyer 3957aa
--- a/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 3957aa
+++ b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 3957aa
@@ -16,7 +16,7 @@ depends() {
Harald Hoyer 3957aa
 }
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
 installkernel() {
Harald Hoyer 3957aa
-    instmods squashfs
Harald Hoyer 3957aa
+    instmods squashfs loop
Harald Hoyer 3957aa
 }
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
 install() {
Harald Hoyer 3957aa
diff --git a/modules.d/90dmsquash-live/parse-dmsquash-live.sh b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
Harald Hoyer 3957aa
index a733144..920647e 100755
Harald Hoyer 3957aa
--- a/modules.d/90dmsquash-live/parse-dmsquash-live.sh
Harald Hoyer 3957aa
+++ b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
Harald Hoyer 3957aa
@@ -17,6 +17,8 @@ fi
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
 [ "${liveroot%%:*}" = "live" ] || return
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
+modprobe -q loop
Harald Hoyer 3957aa
+
Harald Hoyer 3957aa
 case "$liveroot" in
Harald Hoyer 3957aa
     live:LABEL=*|LABEL=*) \
Harald Hoyer 3957aa
         root="${root#live:}"