[PATCH] Don't include the stock lvm.conf. (#1157864)

David Lehman dlehman at redhat.com
Tue Oct 28 17:45:51 UTC 2014


We started including it as an unintended side-effect of commit 9ca487f8.

lvm doesn't like it when there are multiple 'global' sections in lvm.conf,
and we add one right at the end of that block. We expect ours to be the
file's only content.
---
 share/runtime-postinstall.tmpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
index 95b2857..eaa3fd6 100644
--- a/share/runtime-postinstall.tmpl
+++ b/share/runtime-postinstall.tmpl
@@ -109,6 +109,7 @@ remove etc/lvm/backup/*
 remove etc/lvm/backup
 remove etc/lvm/cache/*
 remove etc/lvm/cache
+remove etc/lvm/lvm.conf
 append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
 
 ## Record the package versions used to create the image
-- 
1.9.3



More information about the anaconda-patches mailing list