commit:     6dce47a175ec2508eac1e04e5df42efc58baf398
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 22 03:44:54 2018 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu Feb 22 03:44:54 2018 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=6dce47a1

do not rewrite make.conf if sticky-config is set

we don't want to re-write the user's make.conf if sticky-config is set,
it may have been modified during fsscript and the user asked for their
config to be preserved

 catalyst/base/stagebase.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index eaed73fc..c249295a 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1231,8 +1231,9 @@ class StageBase(TargetBase, ClearBase, GenBase):
                if os.path.exists(overlay):
                        clear_path(overlay)
 
-               # re-write the make.conf to be sure it is clean
-               self.write_make_conf(setup=False)
+               if "sticky-config" not in self.settings["options"]):
+                       # re-write the make.conf to be sure it is clean
+                       self.write_make_conf(setup=False)
 
                # Clean up old and obsoleted files in /etc
                if os.path.exists(self.settings["stage_path"]+"/etc"):

Reply via email to