From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Joey Boggs <jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] add live_readonly karg to mount /dev/mapper/live-rw as readonly
Date: Fri, 05 Mar 2010 11:50:42 +0100 [thread overview]
Message-ID: <4B90E202.7080106@redhat.com> (raw)
In-Reply-To: <1267733352-15845-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 03/04/2010 09:09 PM, Joey Boggs wrote:
> This will allow live cd based images to utilize a readonly root file system.
>
> ---
> modules.d/90dmsquash-live/dmsquash-live-root | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
> index e2e3ef8..7457e2c 100755
> --- a/modules.d/90dmsquash-live/dmsquash-live-root
> +++ b/modules.d/90dmsquash-live/dmsquash-live-root
> @@ -21,6 +21,7 @@ live_dir=$(getarg live_dir)
> getarg live_ram&& live_ram="yes"
> getarg reset_overlay&& reset_overlay="yes"
> getarg readonly_overlay&& readonly_overlay="--readonly" || readonly_overlay=""
> +getarg live_readonly&& live_readonly="-o ro" || live_readonly=""
> overlay=$(getarg overlay)
>
> # FIXME: we need to be able to hide the plymouth splash for the check really
> @@ -173,6 +174,6 @@ if [ -b "$OSMIN_LOOPDEV" ]; then
> 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' "$live_readonly" "$NEWROOT"> /mount/01-$$-live.sh
>
> exit 0
maybe we should teach dmsquash-live to use already defined parameters, like
"rootflags" "rootfstype" and such.
prev parent reply other threads:[~2010-03-05 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-04 20:09 [PATCH] add live_readonly karg to mount /dev/mapper/live-rw as readonly Joey Boggs
[not found] ` <1267733352-15845-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-03-05 10:50 ` Harald Hoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B90E202.7080106@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox