Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0035-add-readonly-overlay-support-for-dmsquash.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0035-add-readonly-overlay-support-for-dmsquash.patch of Package dracut
From 98b9ab580ab19b8c5398e5fab2457e94fdef66ed Mon Sep 17 00:00:00 2001 From: Joey Boggs <jboggs@redhat.com> Date: Fri, 26 Feb 2010 09:44:29 -0500 Subject: [PATCH] add readonly overlay support for dmsquash 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 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.8.3.1