Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508654 - sys-firmware/ipxe - add USE=lkrn
Summary: sys-firmware/ipxe - add USE=lkrn
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-25 01:09 UTC by regatus
Modified: 2015-08-30 01:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description regatus 2014-04-25 01:09:59 UTC
some people want to use ipxe as a bootable module in a bootloader (i.e grub). similar to the usb, iso and undi use flags, there should be a "lkrn" use flag.

Reproducible: Always




i am not sure if this qualifies for an "-r1", but these are the ebuild changes for building a lkrn ipxe:

--- ipxe-1.0.0_p20130624.ebuild 2013-09-06 18:31:35.000000000 +0200
+++ ipxe-1.0.0_p20130624-r1.ebuild      2014-04-25 10:59:43.957630507 +0200
@@ -16,7 +16,7 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE="iso +qemu undi usb vmware"
+IUSE="iso +qemu undi usb vmware lkrn"
 
 DEPEND="sys-devel/make
        dev-lang/perl
@@ -85,6 +85,7 @@
        use iso && ipxemake bin/ipxe.iso
        use undi && ipxemake bin/undionly.kpxe
        use usb && ipxemake bin/ipxe.usb
+       use lkrn && ipxemake bin/ipxe.lkrn
 }
 
 src_install() {
@@ -97,4 +98,5 @@
        use iso && doins bin/*.iso
        use undi && doins bin/*.kpxe
        use usb && doins bin/*.usb
+       use lkrn && doins bin/*.lkrn
 }
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-25 12:29:51 UTC
What is an "lkrn"?
Comment 2 regatus 2014-04-25 13:41:04 UTC
it's ipxe wrapped in a linux kernel bootable file, so you can boot it directly from grub or any other bootloader.

$ file ipxe.lkrn 
ipxe.lkrn: Linux kernel x86 boot executable zImage, RW-rootFS,
Comment 3 Stefan Valouch 2014-11-02 22:02:55 UTC
I have it in use with the patch in comment #1 for some time now as I need lkrn. Please add the USE flag to the package.