From: Gerd Hoffmann <kraxel@redhat.com>
To: Michael Brown <mcb30@ipxe.org>
Cc: ipxe-devel <ipxe-devel@ipxe.org>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [ipxe-devel] EFI_PXE_BASE_CODE_PROTOCOL
Date: Mon, 07 Sep 2015 16:58:12 +0200 [thread overview]
Message-ID: <1441637892.27149.34.camel@redhat.com> (raw)
In-Reply-To: <55ED98EA.4060101@ipxe.org>
Hi,
> 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
inst.repo=http://spunk.home.kraxel.org/mirror/rhel/7/RHEL-7.1-20150219.1/compose/Workstation/x86_64/os/
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 ...'
linuxefi
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 ...'
initrdefi
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
cheers,
Gerd
next prev parent reply other threads:[~2015-09-07 14:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 10:14 [Qemu-devel] EFI_PXE_BASE_CODE_PROTOCOL Gerd Hoffmann
2015-09-07 14:02 ` [Qemu-devel] [ipxe-devel] EFI_PXE_BASE_CODE_PROTOCOL Michael Brown
2015-09-07 14:58 ` Gerd Hoffmann [this message]
2015-09-10 15:07 ` Michael Brown
2015-09-10 15:20 ` Gerd Hoffmann
2015-09-10 15:29 ` Michael Brown
2015-09-11 8:56 ` Gerd Hoffmann
2015-10-20 8:16 ` Gerd Hoffmann
2015-10-26 0:14 ` Michael Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441637892.27149.34.camel@redhat.com \
--to=kraxel@redhat.com \
--cc=ipxe-devel@ipxe.org \
--cc=mcb30@ipxe.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).