grub menu is automatically skipped
JB
jb.1234abcd at gmail.com
Mon Aug 23 07:12:28 UTC 2010
Aaron Konstam <akonstam <at> sbcglobal.net> writes:
> ...
> I am glad you solved you problem but I am amazed that default worked.
Hi,
Aaron is right about his amazement.
info grub
...
-- Command: default num
Set the default entry to the entry number NUM. Numbering starts
from 0, and the entry number 0 is the default if the command is not
used.
...
So, the presence of default command is not required.
> Hibernate saves the state of the system at the time you tell it to
> hibernate.
$ less /var/log/pm-suspend.log
...
/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
...
$ less /usr/lib/pm-utils/sleep.d/01grub
...
out=$(/sbin/grubby --info /boot/vmlinuz-$(uname -r) |grep index)
...
echo "savedefault --default=${current} --once" | \
...
In this case, the default entry is the entry saved with the command
`savedefault'.
> When you return you load back the system to the state you
> had before hibernation.
GRUB will choose the entry booted previously as the default entry.
> Which means to me that if you hibernate while in
> Linux it should come back to Linux. And booting into Windows 7 should be
> impossible. Would someone who suggested the default solution explain why
> this works?
Yes, Aaron. Do not let them off the hook :-)
JB
More information about the users
mailing list