All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] teach dmsquash-live-root to use rootflags
@ 2010-03-26 14:01 Joey Boggs
       [not found] ` <1269612076-18504-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Joey Boggs @ 2010-03-26 14:01 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Joey Boggs

---
 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.6.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-15  5:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 14:01 [PATCH] teach dmsquash-live-root to use rootflags Joey Boggs
     [not found] ` <1269612076-18504-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-09 14:10   ` Joey Boggs
     [not found]     ` <4BBF355B.80600-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-09 14:40       ` Harald Hoyer
     [not found]         ` <4BBF3C56.4010803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-15  5:34           ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.