From 4a7552d4be269d4a2f9beef7cf23a8bebf8f27d8 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Tue, 28 Oct 2014 12:41:24 -0500 Subject: [PATCH] Don't include the stock lvm.conf. (#1157864) 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 95b2857a..eaa3fd68 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