Summary: | sys-boot/grub-2.00-r2: grub2-reboot & grub2-set-default don't work | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Doug Goldstein (RETIRED) <cardoe> |
Component: | New packages | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | grub.cfg |
Description
Doug Goldstein (RETIRED)
![]() Sorry, I saw your email but forgot about it. I'm able to get this working in a qemu instance with an ext2 /boot partition. On what type of filesystem does your /boot/grub2 directory reside? The boot saving stuff works by reading/writing a variable in /boot/grub2/grubenv. Can I take a look at the following files? /boot/grub2/grubenv /boot/grub2/grub.cfg (In reply to comment #1) > Sorry, I saw your email but forgot about it. > > I'm able to get this working in a qemu instance with an ext2 /boot partition. > > On what type of filesystem does your /boot/grub2 directory reside? Its ext3. > > The boot saving stuff works by reading/writing a variable in > /boot/grub2/grubenv. > > Can I take a look at the following files? > > /boot/grub2/grubenv # GRUB Environment Block saved_entry=Gentoo GNU/Linux, with Linux 3.4.9-gentoo ################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################# > /boot/grub2/grub.cfg Created attachment 343060 [details]
grub.cfg
Ok, so I loaded your config in my qemu image. I then selected "Advanced options...". "Gentoo GNU/Linux, with Linux 3.4.9-gentoo" from the boot menu. After booting failed (I don't have your kernels), I then rebooted the VM. Upon reboot, the menu entry I had selected was still selected. The grubenv file now contains this: saved_entry=gnulinux-advanced-a625d7e7-a0d9-4625-9c7b-a5fd2516db71>gnulinux-3.4.9-gentoo-advanced-a625d7e7-a0d9-4625-9c7b-a5fd2516db71 Try passing that string to grub2-set-default. Also, if you want a copy of the qemu disk image to play with, let me know. |