[rhel7-branch 5/5] Disable LVM autobackup when doing image installs (#1269144)

wgwoods installerbot-noreply at redhat.com
Thu Oct 8 17:17:44 UTC 2015


From: Will Woods <wwoods at redhat.com>

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.

(cherry picked from commit 817eeeb85b4a476e6f92f8646c027846f817904a)

Resolves: rhbz#1269144
---
 blivet/flags.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/blivet/flags.py b/blivet/flags.py
index 9236568..0ff1c96 100644
--- a/blivet/flags.py
+++ b/blivet/flags.py
@@ -110,4 +110,9 @@ def update_from_anaconda_flags(self, anaconda_flags):
         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()


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/7967bb0515e914db90e51f1f97d42e6cb3b0bc54


More information about the anaconda-patches mailing list