From a1b4efe6a722ac3754d8a48109575d11d5ccf61b Mon Sep 17 00:00:00 2001 From: Fabian Deutsch Date: Thu, 21 May 2015 12:37:38 +0200 Subject: [PATCH 1/2] doc: Add a minimal rd.live.overlay documentation Signed-off-by: Fabian Deutsch --- dracut.cmdline.7.asc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc index e51fd1b7..55e6f64e 100644 --- a/dracut.cmdline.7.asc +++ b/dracut.cmdline.7.asc @@ -838,6 +838,18 @@ can be found. By default, this is __LiveOS__. Copy the complete image to RAM and use this for booting. This is useful when the image resides on i.e. a DVD which needs to be ejected later on. +**rd.live.overlay=**__:_(|auto)__ +Allow the usage of a permanent overlay. +__ specifies the path to a device with a mountable filesystem. +__ is the path to a file within that filesystem, which shall be used to +persist the changes made to the device specified by **root=live:____** option. ++ +[listing] +.Example +-- +rd.live.overlay=/dev/sdb1:persistent-overlay.img +-- + **rd.live.overlay.thin=**1:: Enables the usage of thin snapshots instead of classic dm snapshots. The advantage of thin snapshots is, that they support discards, and will free From cfa365a32d47388c8476064b23d7d4684f1e591b Mon Sep 17 00:00:00 2001 From: Fabian Deutsch Date: Thu, 21 May 2015 12:38:05 +0200 Subject: [PATCH 2/2] lvm: Don't activate LVs with activationskip set Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1186854 Signed-off-by: Fabian Deutsch --- modules.d/90lvm/lvm_scan.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh index 74956440..ce46e145 100755 --- a/modules.d/90lvm/lvm_scan.sh +++ b/modules.d/90lvm/lvm_scan.sh @@ -106,6 +106,10 @@ if [ -n "$LVS" ] ; then info "Scanning devices $lvmdevs for LVM logical volumes $LVS" lvm lvscan --ignorelockingfailure 2>&1 | vinfo for LV in $LVS; do + if [ "x$(lvm lvs --noheadings --select "lv_attr =~ k" $LV | wc -l)" = "x0" ]; then + info "Skipping activation of '$LV' because activationskip is set." + continue + fi if [ -z "$sysinit" ]; then lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo else