Hans de Goede wrote:
---
booty/bootloaderInfo.py | 2 ++
language.py | 12 ++++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
Looks ok to me.
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 817a000..5eb4f1f 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -99,6 +99,8 @@ class KernelArguments:
args += " "
args += self.id.network.dracutSetupString(d.host_address)
+ args += self.id.instLanguage.dracutSetupString()
+
return args
def set(self, args):
diff --git a/language.py b/language.py
index 78c86ad..bba6acc 100644
--- a/language.py
+++ b/language.py
@@ -234,3 +234,15 @@ class Language:
f.write("lang %s\n" % self.targetLang)
else:
f.write("lang %s\n" % self.info['LANG'])
+
+ def dracutSetupString(self):
+ args=""
+
+ for key in self.info.keys():
+ if self.info[key] != None:
+ if key == "LANG" and self.targetLang is not None:
+ args += " %s=%s" % (key, self.targetLang)
+ else:
+ args += " %s=%s" % (key, self.info[key])
+
+ return args
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list