[PATCH 2/4] Write dracut i18n cmdline options to grub.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 booty/bootloaderInfo.py |    2 ++
 language.py             |   12 ++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

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
-- 
1.6.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux