Blame 0052-dmsquash-live-force-load-squashfs-kernel-module.patch
|
Harald Hoyer |
8d2be9 |
From 85804a9197790d461dfa1458883f84a9da9ae589 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
8d2be9 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
8d2be9 |
Date: Sat, 16 Mar 2013 10:31:37 +0100
|
|
Harald Hoyer |
8d2be9 |
Subject: [PATCH] dmsquash-live: force load squashfs kernel module
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
https://bugzilla.redhat.com/show_bug.cgi?id=922248
|
|
Harald Hoyer |
8d2be9 |
---
|
|
Harald Hoyer |
8d2be9 |
modules.d/90dmsquash-live/dmsquash-live-root.sh | 3 +++
|
|
Harald Hoyer |
8d2be9 |
1 file changed, 3 insertions(+)
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
8d2be9 |
index 0b1ed20..a79b0d9 100755
|
|
Harald Hoyer |
8d2be9 |
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
8d2be9 |
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
8d2be9 |
@@ -49,9 +49,12 @@ ln -s $livedev /run/initramfs/livedev
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
# determine filesystem type for a filesystem image
|
|
Harald Hoyer |
8d2be9 |
det_img_fs() {
|
|
Harald Hoyer |
8d2be9 |
+ udevadm settle
|
|
Harald Hoyer |
8d2be9 |
blkid -s TYPE -u noraid -o value "$1"
|
|
Harald Hoyer |
8d2be9 |
}
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
+modprobe squashfs
|
|
Harald Hoyer |
8d2be9 |
+
|
|
Harald Hoyer |
8d2be9 |
for arg in $CMDLINE; do case $arg in ro|rw) liverw=$arg ;; esac; done
|
|
Harald Hoyer |
8d2be9 |
# mount the backing of the live image first
|
|
Harald Hoyer |
8d2be9 |
mkdir -m 0755 -p /run/initramfs/live
|