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 readonly overlay support for dmsquash
Date: Thu, 04 Mar 2010 14:07:33 +0100 [thread overview]
Message-ID: <4B8FB095.8090005@redhat.com> (raw)
In-Reply-To: <1267195469-32522-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 02/26/2010 03:44 PM, Joey Boggs wrote:
> Adds the readonly_overlay karg for cases where the dm snapshot should be set to readonly. Use case would be a livecd that is configured to have a readonly root where filling up the dm snapshot would cause a problem.
>
> ---
> 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 acec91d..f40e048 100755
> --- a/modules.d/90dmsquash-live/dmsquash-live-root
> +++ b/modules.d/90dmsquash-live/dmsquash-live-root
> @@ -20,6 +20,7 @@ live_dir=$(getarg live_dir)
> [ -z "$live_dir" ]&& live_dir="LiveOS"
> getarg live_ram&& live_ram="yes"
> getarg reset_overlay&& reset_overlay="yes"
> +getarg readonly_overlay&& readonly_overlay="--readonly" || readonly_overlay=""
> overlay=$(getarg overlay)
>
> # FIXME: we need to be able to hide the plymouth splash for the check really
> @@ -95,7 +96,7 @@ do_live_overlay() {
> fi
>
> # set up the snapshot
> - echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create live-rw
> + echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create $readonly_overlay live-rw
> }
>
> # live cd helper function
pushed
prev parent reply other threads:[~2010-03-04 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 14:44 [PATCH] add readonly overlay support for dmsquash Joey Boggs
[not found] ` <1267195469-32522-1-git-send-email-jboggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-02-26 20:23 ` Karel Zak
[not found] ` <20100226202326.GG8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-03-04 13:07 ` Harald Hoyer
[not found] ` <4B8FB0A5.2090309-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-03-04 14:16 ` Karel Zak
[not found] ` <20100304141633.GA18077-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-03-04 14:28 ` Harald Hoyer
2010-03-04 13:07 ` 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=4B8FB095.8090005@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 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.