Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302181 Details for
Bug 134548
Too limited control over boot params
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to add fallback setting
system-config-boot-fallback.patch (text/plain), 2.70 KB, created by
ray hammond
on 2008-04-11 23:59:50 UTC
(
hide
)
Description:
Patch to add fallback setting
Filename:
MIME Type:
Creator:
ray hammond
Created:
2008-04-11 23:59:50 UTC
Size:
2.70 KB
patch
obsolete
>--- ./boot_gui.py 2008-02-29 20:38:53.000000000 +0000 >+++ /home/ray/boot_gui.py 2009-03-10 02:35:31.000000000 +0000 >@@ -88,14 +88,19 @@ class BootWindow: > self.myHbox.pack_start(self.timeoutLabel, False) > self.myHbox.pack_start(self.timeoutEntry, False) > >+ self.fallbackEntry = gtk.CheckButton("Fallback", False) >+ self.myHbox.pack_start(self.fallbackEntry, False) >+ > self.probedBoot = 0 > self.probedTimeout = 15 >+ self.probedFallback = 0 > > self.readBootDB() > self.setDefault() > > tooltips = gtk.Tooltips() > tooltips.set_tip(self.timeoutEntry, _("Set a timeout, in seconds, before automatically booting the selected entry.")) >+ tooltips.set_tip(self.fallbackEntry, _("Fallback to the second entry.")) > tooltips.enable() > > self.myVbox = gtk.VBox() >@@ -155,6 +160,14 @@ class BootWindow: > self.probedTimeout = 0 > pass > continue >+ >+ if tokens != [''] and tokens[0] == "fallback": >+ try: >+ self.probedFallback = int(tokens[1]) >+ except: >+ self.probedFallback = 0 >+ pass >+ continue > > def setDefault(self): > parent = None >@@ -174,7 +187,8 @@ class BootWindow: > num += 1 > > self.timeoutEntry.set_value(self.probedTimeout) >- >+ >+ self.fallbackEntry.set_active(self.probedFallback == 1) > > def launch(self, doDebug=None): > self.doDebug = doDebug >@@ -224,10 +238,16 @@ class BootWindow: > iter = self.bootStore.get_iter_root() > defaultset = None > timeoutset = None >+ fallbackset = None > timeout = 30 >+ fallback=0 >+ > try: > timeout = self.timeoutEntry.get_value_as_int() > except: pass >+ >+ if self.fallbackEntry.get_active(): >+ fallback=1 > > for i in xrange(len(lines)): > if lines[i][0] != "#": >@@ -252,12 +272,21 @@ class BootWindow: > lines[i] = "default=%d\n" % num > defaultset = 1 > continue >+ >+ if tokens[0] == "fallback": >+ lines[i] = "fallback=%d\n" % fallback >+ fallbackset = 1 >+ continue >+ > > if not defaultset: > lines.append("default=%d\n" % num) > > if not timeoutset: > lines.append("timeout=%d\n" % timeout) >+ >+ if not fallbackset: >+ lines.append("fallback=%d\n" % fallback) > > try: > fd = open('/etc/grub.conf', 'w')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 134548
: 302181