12f4d57338
- dmraid parse different error messages - add cdrom polling mechanism for slow cdroms - add module btrfs - teach dmsquash live-root to use rootflags - trigger udev with action=add - fixed add_drivers handling - add sr_mod - use pigz instead of gzip, if available
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From fbf1b5b138df65dc6ff309c6d015e0e5c887aa0e Mon Sep 17 00:00:00 2001
|
|
From: Joey Boggs <jboggs@redhat.com>
|
|
Date: Fri, 26 Mar 2010 10:01:16 -0400
|
|
Subject: [PATCH 06/15] teach dmsquash-live-root to use rootflags
|
|
|
|
---
|
|
modules.d/90dmsquash-live/dmsquash-live-root | 7 ++++++-
|
|
1 files changed, 6 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
|
|
index b1754dc..c98cdef 100755
|
|
--- a/modules.d/90dmsquash-live/dmsquash-live-root
|
|
+++ b/modules.d/90dmsquash-live/dmsquash-live-root
|
|
@@ -172,7 +172,12 @@ if [ -b "$OSMIN_LOOPDEV" ]; then
|
|
echo "0 $( blockdev --getsz $BASE_LOOPDEV ) snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
|
|
fi
|
|
|
|
+ROOTFLAGS="$(getarg rootflags)"
|
|
+if [ -n "$ROOTFLAGS" ]; then
|
|
+ ROOTFLAGS="-o $ROOTFLAGS"
|
|
+fi
|
|
+
|
|
ln -s /dev/mapper/live-rw /dev/root
|
|
-printf '/bin/mount /dev/mapper/live-rw %s\n' "$NEWROOT" > /mount/01-$$-live.sh
|
|
+printf '/bin/mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > /mount/01-$$-live.sh
|
|
|
|
exit 0
|
|
--
|
|
1.7.0.1
|
|
|