RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1401491 - [RFE] Enhance ipxe.efi with command parameters
Summary: [RFE] Enhance ipxe.efi with command parameters
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipxe
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jens Freimann
QA Contact: xiywang
URL:
Whiteboard:
Depends On:
Blocks: 1261802
TreeView+ depends on / blocked
 
Reported: 2016-12-05 12:28 UTC by Lukas Zapletal
Modified: 2018-07-20 13:55 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-20 13:54:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proof-of-concept patch (2.80 KB, text/plain)
2016-12-09 14:13 UTC, Ladi Prosek
no flags Details

Description Lukas Zapletal 2016-12-05 12:28:35 UTC
Hello,

for Satellite 6 bootdisk support, we would like be able to generate bootdisks with ixpe.efi chainbooted from Grub2. This allows specifying script location via arguments. For BIOS we use:

default ipxe
label ipxe
kernel /ipxe
initrd /script

For EFI we would like to do the same, but this does not work:

set default=0
set timeout=1
menuentry "Chainload iPXE - this does not work" {
  linuxefi /ipxe.efi
  initrdefi /script.ipxe
}
menuentry "Chainload iPXE - this does not work either" {
  search --no-floppy --set=root -f /ipxe.efi
  chainloader /ipxe.efi chain /script.ipxe
}

Arguments are ignored by the EFI firmware at the moment.

Can you guys estimate how feasible is implementing such a feature, thanks. If that turns out to be hard, we could compile our own ipxe.efi with embedded script that chainloads another one from the media.

Comment 3 Ladi Prosek 2016-12-09 14:13:51 UTC
Created attachment 1229966 [details]
Proof-of-concept patch

Lukas, can you please try the attached prototype patch? I can pass EFI command line arguments from iPXE to iPXE, e.g.

iPXE> chain ipxe.efi echo Hello world!

but I haven't tried it with grub.

Comment 4 Ladi Prosek 2016-12-12 08:42:05 UTC
A patch has just been posted by Christian Nilsson. Should be identical in functionality modulo some extra command line cruft stripping.

http://lists.ipxe.org/pipermail/ipxe-devel/2016-December/005306.html

Comment 5 Lukas Zapletal 2016-12-22 12:50:33 UTC
Thanks, I will test the patch from Christian then.

Comment 8 Lukas Zapletal 2017-01-16 14:05:28 UTC
Unfortunately, I am not able to boot that from Grub2, it looks like there is no way of providing entry options. I am afraid the only solution is to build a regular UEFI boot image (FAT image with iPXE EFI ROM) with embedded "chain script.ipxe" command. The thing I was trying to avoid (to carry own build of ipxe with embedded script in Satellite repositories).

Comment 16 Ladi Prosek 2017-06-07 10:08:52 UTC
Two more replies to Christian Nilsson's patch (pipermail doesn't show them, presumably because the original email was sent last year):

http://lists.ipxe.org/pipermail/ipxe-devel/2017-May/005617.html

Comment 25 Lukas Zapletal 2018-07-20 13:55:15 UTC
The patch was not accepted upstream. Closing the BZ.


Note You need to log in before you can comment on or make changes to this bug.