Gerd Hoffmann kraxel at redhat.com
Mon Sep 7 14:58:12 UTC 2015


> I find GRUB2 difficult to work with since it seems not to support manual 
> creation of configuration files.  Do you have a known-working grub.efi 
> configuration (DHCP options, configuration files, etc) that you could 
> send me so I can reproduce the problem?

You can get away with a pretty simple config file even though the ones
generated by grub2-mkconfig are horrible.  I have this one:

======================== cut here ==========================

set timeout=5

menuentry 'RHEL-7.1-20150219.1 Workstation' --class os {
        echo 'loading rhel/RHEL-7.1-20150219.1-Workstation/vmlinuz ...'
        linuxefi rhel/RHEL-7.1-20150219.1-Workstation/vmlinuz
        echo 'loading
rhel/RHEL-7.1-20150219.1-Workstation/initrd.img ...'
        initrdefi rhel/RHEL-7.1-20150219.1-Workstation/initrd.img
        echo 'booting ...'

menuentry 'RHEL-7.1-20150219.1 Workstation (trying http)' --class os {
        echo 'loading
http://spunk.home.kraxel.org/mirror/rhel/7/RHEL-7.1-20150219.1/compose/Workstation/x86_64/os//images/pxeboot/vmlinuz ...'
http://spunk.home.kraxel.org/mirror/rhel/7/RHEL-7.1-20150219.1/compose/Workstation/x86_64/os//images/pxeboot/vmlinuz inst.repo=http://spunk.home.kraxel.org/mirror/rhel/7/RHEL-7.1-20150219.1/compose/Workstation/x86_64/os/
        echo 'loading
http://spunk.home.kraxel.org/mirror/rhel/7/RHEL-7.1-20150219.1/compose/Workstation/x86_64/os//images/pxeboot/initrd.img ...'
        echo 'booting ...'

======================== cut here ==========================

This is generated by a script which does also copy the kernels to the
tftproot, there are more simliar entries for more RHEL versions but this
should be enough to get the idea ...

First entry actually works.  Second does not, but I'm hoping some day it
does.  Probably depends on how grub actually tries to fetches the files,
i.e. whenever the full http url is passed on to ipxe somehow so it can
do its magic.

The file is simply placed as "grub.cfg" in tftproot, next to grubx64.efi


More information about the ipxe-devel mailing list