Marking as "needs info" because there really isn't a "grr, it still
doesn't work" status.

I've just tried this under Feisty (grub 0.97-20ubuntu3 ) and grub-reboot
does not perform as advertised: /boot/grub/default DOES get updated, but
the system DOES NOT boot into the desired OS, it still boots into the
"top of the list".

debbugs #254475 mentions having to run more commands after running grub-
set-default in order for that command to work. Perhaps this is the
problem with grub-reboot: It DOES NOT run more commands, it simply asks
the user if they wish to reboot. If the user chooses YES, then nothing
useful happens - the system reboots but into the wrong OS.

Please refer to the following "capture":

$ uname -a
Linux EdgeKeep-PC001 2.6.20-5-generic #2 SMP Sat Jan 6 14:50:47 UTC 2007 i686 
GNU/Linux
$ grub-reboot -v
grub-reboot 0.01
$ su
[EMAIL PROTECTED]:/home/pww# head -1 /boot/grub/default 
0
[EMAIL PROTECTED]:/home/pww# grub-reboot 2
Searching for GRUB installation directory ... found: /boot/grub
Probing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> savedefault --once --default=2
grub> quit

Do you want to reboot now? [y/N] n
[EMAIL PROTECTED]:/home/pww# head -1 /boot/grub/default 
0:2
[EMAIL PROTECTED]:/home/pww# tail -5 /usr/sbin/grub-reboot 
echo -n "Do you want to reboot now? [y/N] "
read REBOOT
case $REBOOT in
  y*|Y*) reboot ;;
esac
[EMAIL PROTECTED]:/home/pww# exit
$

The default file is updated, and we see the user is asked if they wish
to reboot. We also see that if reboot is selected, we go there directly,
without running any additional commands (and the only grub or other
system administration commands in grub-reboot are the call to grub to
set the default and reboot - so there's nothing else to run!).

(The comments in the debbugs report appear to contradict the on-line gnu
grub manual, since the latter implies - if not states explicitly - that
running grub-set-default $theEntryYouWant is enough to get the right one
booted.)

It all comes down to this: Should grub-reboot be all there is to it?

If yes, then grub-reboot should run all commands necessary to set the
"next to boot OS" as specified on its command line.

If no, then grub-reboot should not ask the user whether they wish to
reboot, it should tell them what they have to do.


** Changed in: grub (Ubuntu)
       Status: Confirmed => Needs Info

-- 
Latest grub package (0.97-1ubuntu4) breaks /sbin/grub-reboot
https://launchpad.net/bugs/31915

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to