Summary: | sys-firmware/ipxe: please add a new snapshot | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tomáš Mózes <hydrapolic> |
Component: | Current packages | Assignee: | Gentoo QEMU Project <qemu+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | joakim.tjernlund |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | New ipxe snapshot |
Description
Tomáš Mózes
2017-11-23 06:42:41 UTC
Created attachment 516564 [details]
New ipxe snapshot
This ebuild has some changes: build efi like upstream - wont work for me otherwise ARCH is hardcoded to x86_64 as I don't know how to do this properly Adds IPXE_EMBED wich should point a ipxe script which will be built in to ipxe installs ipxe.lkrn to /boot for grub to use example grub2 conf(/etc/grub.d/20_ipxe) #!/bin/sh set -e if [ -f /usr/share/grub/grub-mkconfig_lib ]; then . /usr/share/grub/grub-mkconfig_lib LX=linux16 else # no grub file, so we notify and exit gracefully echo "Cannot find grub config file, exiting." >&2 exit 0 fi # We can't cope with loop-mounted devices here. case ${GRUB_DEVICE_BOOT} in /dev/loop/*|/dev/loop[0-9]) exit 0 ;; esac # iPXE is only supported on x86 case $(dpkg --print-architecture) in *i386|*amd64) ;; *) exit 0 ;; esac prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")" IPXE=/boot/ipxe.lkrn if test -e "$IPXE" ; then IPXEPATH=$( make_system_path_relative_to_its_root "$IPXE" ) echo "Found iPXE image: $IPXEPATH" >&2 cat << EOF menuentry "Network boot (iPXE)" --users "" --class network { ${prepare_boot_cache} $LX $IPXEPATH } EOF fi Example script: #!ipxe ifconf --configurator dhcp || shell chain tftp://my.installhost.com/install.ipxe echo chain failed! shell I have created a new ipxe snapshot. However, it does not contain your changes for imbedding a custom script. The new ebuild is now EAPI 6, it thus supports epatch_user. What about you create a custom patch for your own needs (that adds the script)? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8549c4d268c60ef3e74368a00a92062562942f7 commit b8549c4d268c60ef3e74368a00a92062562942f7 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2018-02-11 23:28:07 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2018-02-12 00:01:35 +0000 sys-firmware/ipxe: create new snapshot Closes: https://bugs.gentoo.org/628354 Closes: https://bugs.gentoo.org/638532 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-firmware/ipxe/Manifest | 1 + sys-firmware/ipxe/ipxe-1.0.0_p20180211.ebuild | 108 ++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) |