On 15 May 2012 19:37, Paul Hartman <paul.hartman+gen...@gmail.com> wrote: > Hi, > > I'm trying out grub2 for the first time on my old laptop. I'm > following the guide at: https://wiki.gentoo.org/wiki/GRUB2_Quick_Start > which seems easy enough. Basically just emerge it, install and go. > > However... two different questions: > > When I did this from a chroot, I just got the GRUB> prompt upon > rebooting... no menu or anything. I can manually type "linux > /boot/vmlinuz root=/dev/sda3" and then boot into my system. When I run > grub2-mkconfig from within the chroot, I don't get any "Found linux > image" lines. It does not create /boot/grub2/grub.cfg but rather > grub.cfg.new. So I don't know if it's confused about where /boot is or > what. Is there a trick to installing/updating grub2 config from within > a chroot?
I don't really understand where the chroot comes into this but ... did you add the "-o /boot/grub2/grub.cfg" part? I forgot that bit a few times and then couldn't figure out why my changes weren't taking effect. :-) > Second, when running grub2-mkconfig from within my working gentoo > system, it fails with "error: failed to get canonical path of > /dev/root." which is apparently because I don't use an initramfs. I > must manually run "ln -s /dev/sda3 /dev/boot" before it will work. Is > there any trick to avoid having to do that every time? For now I have > simply added that to my after-kernel-update script but I'm curious to > know if grub2 knows how to handle this on its own somehow. > > Thanks, > Paul >