On 12/04/17 18:15, Michael Orlitzky wrote:
On 12/04/2017 09:13 PM, Daniel Frey wrote:

Well, it copies from /usr/share/grub and /lib/grub to /boot/grub, and
the sum of those directories are 270M without any kernels, etc
installed. I guess I'm going to have to tarball everything up,
repartition, and untar it.

I guess I'll have to remember to use 500M+ /boot partitions now. Sigh.


Before you do all that, some people on the bug have reported that the
larger binaries are busted and won't boot.




I can confirm that: right after I posted, I rebooted and all hell broke loose. I just got booted up again (I'd already removed gcc-5) using grub2.

I was genuinely annoyed with grub2 due to its update and massive config files, so I never upgraded to it. I usually had multiple kernel versions and grub2 helpfully labeled them all "Linux" so I couldn't tell them apart.

I figured out you can still write your own grub2 files, and it wasn't that difficult, other than its numbering is different now (no base-0 partitions... argh.)

Below is an example of a simple grub.cfg that starts two separate kernels (I use a different kernel/partition for MythTV) and a chainloader for Windows 7. It took a few iterations for me to get everything to boot.

My partitions are as follows:
/dev/sda1: Windows tiny partition, the bootable one
/dev/sda2: Windows 7
/dev/sda3: /boot

As you can see, there's no base-0 counted partitions in the config, that messed me up more than once.

I also used PARTUUID for the root= parameter, you can get this by using `blkid /dev/sdaX`. Also, don't encapsulate your PARTUUID in quotes, that didn't work for me. I simply had (as an example) root=PARTUUID=abcdef33-01 and it boots fine.

It was simple enough to convert (and grub-2.02 actually compiles fine with gcc-6 and the new profile) and figured others were probably like me and avoiding the grub2 config mess.

At least now I know how to configure grub2 manually and simply, so I won't avoid it any more.

Dan

------grub.cfg------
timeout=10
default=0

menuentry 'Gentoo 4.1.43-r1' {
        root=hd0,3
linux /boot/kernel-4.1.43-gentoo-r1 root=PARTUUID=<your PARTUUID> quiet rootfstype=ext4
}

menuentry 'Gentoo - MythTV' {
        root=hd0,3
linux /boot/kernel-4.1.43-gentoo-r1-mythtv root=PARTUUID=<your PARTUUID> quiet rootfstype=ext4
}


menuentry "Windows 7" {
        set root=(hd0,1)
        chainloader +1
        boot
}
--------------------


Reply via email to