[PATCH blivet/master 4/4] Disable LVM autobackup when doing image installs (#1066004)

Will Woods wwoods at redhat.com
Tue Sep 23 22:14:03 UTC 2014


If we're doing an image install, the host system doesn't really care
about the metadata for these volume groups - and if you do a lot of
image installs (say, on a build system) the archive/ directory is going
to grow without bound.

So: suppress the autobackup behavior during image installs to prevent
modifying things on the host.
---
 blivet/flags.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/blivet/flags.py b/blivet/flags.py
index c89a114..4c3c86c 100644
--- a/blivet/flags.py
+++ b/blivet/flags.py
@@ -110,4 +110,9 @@ class Flags(object):
         self.ibft = anaconda_flags.ibft
         self.dmraid = anaconda_flags.dmraid
 
+        # We don't want image installs writing backups of the *image* metadata
+        # into the *host's* /etc/lvm. This can get real messy on build systems.
+        if self.image_install:
+            self.lvm_metadata_backup = False
+
 flags = Flags()
-- 
1.9.3



More information about the anaconda-patches mailing list