[anaconda][all branches] Make sure anaconda reads in ks file from OEMDRV device. (#1057271)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Thu Sep 10 19:03:20 UTC 2015
Even if dracut detects an OEMDRV labelled device and mounts it etc.,
the installer itself does not know there is a ks file to read in since
ks= or inst.ks= was never set on the commandline.
So, instead check explicitly for the existence of ks.cfg where it
gets mounted in such a situation and then set the appropriate flags
to ensure installation actually proceeds automatically.
This should finish off the series of disjoint OEMDRV patches..
Resolves: rhbz#1057271
---
anaconda | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/anaconda b/anaconda
index 5856d62..31c9796 100755
--- a/anaconda
+++ b/anaconda
@@ -990,6 +990,12 @@ if __name__ == "__main__":
flags.automatedInstall = True
flags.eject = False
ksFiles = [opts.ksfile]
+ elif os.path.exists("/run/install/ks.cfg") and not opts.liveinst:
+ # this is to handle such cases where a user has pre-loaded a
+ # ks.cfg onto an OEMDRV labeled device
+ flags.automatedInstall = True
+ flags.eject = False
+ ksFiles = ["/run/install/ks.cfg"]
else:
ksFiles = ["/tmp/updates/interactive-defaults.ks",
"/usr/share/anaconda/interactive-defaults.ks"]
--
1.9.3
More information about the anaconda-patches
mailing list