Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0058-teach-dmsquash-live-root-to-use-rootflags.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0058-teach-dmsquash-live-root-to-use-rootflags.patch of Package dracut
From 3e592297cde294cd2e0487befff6d5fc8dc1c0de Mon Sep 17 00:00:00 2001 From: Joey Boggs <jboggs@redhat.com> Date: Fri, 26 Mar 2010 10:01:16 -0400 Subject: [PATCH] teach dmsquash-live-root to use rootflags --- modules.d/90dmsquash-live/dmsquash-live-root | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.8.3.1