[lorax][PATCH] Keep the /etc/lvm/profiles directory in the image

Vratislav Podzimek vpodzime at redhat.com
Fri Sep 19 13:46:44 UTC 2014

Profile definitions are needed e.g. for creation of thin pools with specific

Related: rhbz#869456
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
 share/runtime-postinstall.tmpl | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
index fb13b8d..bdba76a 100644
--- a/share/runtime-postinstall.tmpl
+++ b/share/runtime-postinstall.tmpl
@@ -115,7 +115,12 @@ append etc/depmod.d/dd.conf "search updates built-in"
 append etc/multipath.conf "defaults {\n\tfind_multipaths yes\n\tuser_friendly_names yes\n}\n"
 ## make lvm auto-activate
-remove etc/lvm/*
+remove etc/lvm/archive/*
+remove etc/lvm/archive
+remove etc/lvm/backup/*
+remove etc/lvm/backup
+remove etc/lvm/cache/*
+remove etc/lvm/cache
 append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
 ## TODO: we could run prelink here if we wanted?

More information about the anaconda-patches mailing list