Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209375 - [PATCH] netboot2: add support for boot/kernel/x/packages
Summary: [PATCH] netboot2: add support for boot/kernel/x/packages
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 19:21 UTC by Justin Bronder (RETIRED)
Modified: 2008-02-08 19:45 UTC (History)
0 users

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


Attachments
catalyst-2.0.5-nb2-kernel-packages.patch (catalyst-2.0.5-nb2-kernel-packages.patch,1.04 KB, patch)
2008-02-08 19:22 UTC, Justin Bronder (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Bronder (RETIRED) gentoo-dev 2008-02-08 19:21:41 UTC
Currently netboot2 supports adding files to the initramfs overlay by package name if the package was previously listed in netboot2/packages by using netboot2/packages/<package>/files.  However this nifty trick doesn't work for packages listed in boot/kernel/<name>/packages.

Not a big deal as you could always add extra files later, but this patch takes care of the above if you're interested.
Comment 1 Justin Bronder (RETIRED) gentoo-dev 2008-02-08 19:22:30 UTC
Created attachment 143001 [details, diff]
catalyst-2.0.5-nb2-kernel-packages.patch
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-08 19:31:16 UTC
How does that even work? Those packages are emerged by genkernel *after* catalyst has already copied stuff to /tmp/image and passed it to genkernel with --initramfs-overlay.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-08 19:38:42 UTC
Actually, I remember what I was going to do here. I was going to move some of this netboot logic into genkernel, which would "solve" the problem.

The whole hack of copying the nb-busybox.cf from one of the genkernel dirs was from when Kumba originally did netboot2. I don't like it, but there's no "good" way to fix it in catalyst.

This will get fixed properly with catalyst-2.1.x and genkernel-3.5.x, both of which will be worked on after the 2008.0 release.
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2008-02-08 19:45:06 UTC
(In reply to comment #2)
> How does that even work? Those packages are emerged by genkernel *after*
> catalyst has already copied stuff to /tmp/image and passed it to genkernel with
> --initramfs-overlay.
> 

You're right, it doesn't.  I just lucked out and still had additional arguments added to genkernel that did this for me.  Sorry for the unnecessary noise.