Re: grub: savedefault and boot once for F12

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

 



sean darcy wrote:
> Tom Horsley wrote:
>> On Sat, 08 May 2010 10:11:41 -0400
>> sean darcy wrote:
>>
>>> And it keeps booting F9. Any suggestions appreciated.
>> You are making the mistake of believing the stuff written
>> in the grub info file :-).
>>
>> The actual grub shipped with fedora has a savedefault
>> that works completely differently.
>>
>> Try running grub and doing a "help savedefault" to get
>> the real info.
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=212649
> 
> Wow. This is a trap for the unwary.
> 
> BTW, IMHO the grub cli help is also misleading:
> 
> help savedefault
> savedefault: savedefault [--stage2=STAGE2_FILE] [--default=DEFAULT] [--once]
>      Save DEFAULT as the default boot entry in STAGE2_FILE. If
>      '--once' is specified, the default is reset after the next reboot.
> 
> The brackets mean to me that it's optional. So you'd use --stage2 only 
> if you're using some non-standard stage2 file.
> 
> Also, BTW, if you do run savedefault without --stage2 there's no error 
> message.
> 
> But it also didn't work :(
> 
> savedefault --stage2=/boot/grub/stage2 --default=2 --once
> 
> reboot, and I'm back at F9.
> 
> Two possibilities: 1.  grub isn't booting F12
> 
> 2. F12 is failing, and grub is booting F9 as the fallback
> 
> So I upped the timeout to 60 seconds. Set default in grub.conf to 0, and 
> rebooted:
> 
> May  8 12:34:10 Server pcscd: readerfactory.c:1379:RFCleanupReaders() 
> entering cleaning function
> May  8 12:34:10 Server pcscd: pcscdaemon.c:532:at_exit() cleaning /var/run
> May  8 12:37:24 Server kernel: imklog 3.20.2, log source = /proc/kmsg 
> started.
> May  8 12:37:24 Server kernel: Initializing cgroup subsys cpuset
> 
> So a reboot takes 3 mins, 10 secs, 190 seconds
> 
> Then set default=saved, ran from grub cli
> 
> savedefault --stage2=/boot/grub/stage2 --default=2 --once
> 
> reboot.
> 
> May  8 12:16:09 Server pcscd: readerfactory.c:1379:RFCleanupReaders() 
> entering cleaning function
> May  8 12:16:09 Server pcscd: pcscdaemon.c:532:at_exit() cleaning /var/run
> May  8 12:18:23 Server kernel: imklog 3.20.2, log source = /proc/kmsg 
> started.
> May  8 12:18:23 Server kernel: Initializing cgroup subsys cpuset
> 
> 2 minutes, 20 secs.
> 
> So it looks to me like grub is not booting F12 at all.
> 
> Any help realllly appreciated.
> 
> sean
> 

Getting weirder.

grub.conf has 3 stanzas, first 2 are f9, 3rd f12.

savedefault --stage2=/boot/grub/stage2 --default=1

worked!! The second stanza booted (F9 with a different kernel).

But now on reboot it keeps booting the second stanza, even though each 
stanza has:

savedefault 0

Second stanza:

title Fedora (2.6.27.24-78.2.53.fc9.i686)
	root (hd0,0)
	kernel /vmlinuz-2.6.27.24-78.2.53.fc9.i686 ro root=/dev/VolGroup00/LogVol00
	initrd /initrd-2.6.27.24-78.2.53.fc9.i686.img
         savedefault 0

With default=saved, shouldn't the first stanza come up on reboot???

This is a problem because it I do boot F12 and there's a problem, it's 
harder to get back to F9.

sean


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux