[master] Create 'console=..' configuration also for grub2.

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

 



Resolves: rhbz#728923
---
 pyanaconda/bootloader.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index accf92e..058dd71 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1481,6 +1481,15 @@ class GRUB2(GRUB):
             name += ")"
         return name
 
+    def write_config_console(self, config):
+        if not self.console:
+            return
+
+        console_arg = "console=%s" % self.console
+        if self.console_options:
+            console_arg += ",%s" % self.console_options
+        self.boot_args.add(console_arg)
+
     def write_device_map(self, install_root=""):
         """ Write out a device map containing all supported devices. """
         map_path = os.path.normpath(install_root + self.device_map_file)
@@ -1554,6 +1563,7 @@ class GRUB2(GRUB):
         os.chmod(users_file, 0755)
 
     def write_config(self, install_root=""):
+        self.write_config_console(None)
         self.write_device_map(install_root=install_root)
         self.write_defaults(install_root=install_root)
 
-- 
1.7.6

_______________________________________________
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