[PATCH] Default the global grub timeout to 5 for serial

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

 



Just setting the terminal timeout doesn't seem to be enough.  This sets
the global time out if serial is in use.  Resolves #568106
---
 booty/x86.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/booty/x86.py b/booty/x86.py
index 14bd641..89d6393 100644
--- a/booty/x86.py
+++ b/booty/x86.py
@@ -278,9 +278,10 @@ class x86BootloaderInfo(efiBootloaderInfo):
 
 
         f.write('default=%s\n' % (default))
-        f.write('timeout=%d\n' % (self.timeout or 0))
 
         if self.serial == 1:
+            # Set the global timeout in serial case
+            f.write('timeout=%d\n' % (self.timeout or 5))
             # grub the 0-based number of the serial console device
             unit = self.serialDevice[-1]
             
@@ -299,6 +300,8 @@ class x86BootloaderInfo(efiBootloaderInfo):
             f.write("serial --unit=%s --speed=%s\n" %(unit, speed))
             f.write("terminal --timeout=%s serial console\n" % (self.timeout or 5))
         else:
+            # Default to 0 timeout in the non-serial case
+            f.write('timeout=%d\n' % (self.timeout or 0))
             # we only want splashimage if they're not using a serial console
             if os.access("%s/boot/grub/splash.xpm.gz" %(instRoot,), os.R_OK):
                 f.write('splashimage=%s%sgrub/splash.xpm.gz\n'
-- 
1.7.0.1

_______________________________________________
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