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

Will Woods wwoods at redhat.com
Fri Sep 19 22:18:38 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/platform.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/platform.py b/blivet/platform.py
index 1ab09e4..5261bfa 100644
--- a/blivet/platform.py
+++ b/blivet/platform.py
@@ -71,6 +71,9 @@ class Platform(object):
                 log.warn("GPT is not a supported disklabel on this platform. Using default "
                          "disklabel %s instead.", self.defaultDiskLabelType)
 
+        if flags.image_install:
+            devicelibs.lvm.autobackup = False
+
     def __call__(self):
         return self
 
-- 
1.9.3



More information about the anaconda-patches mailing list