Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 209375

Summary: [PATCH] netboot2: add support for boot/kernel/x/packages
Product: Gentoo Hosted Projects Reporter: Justin Bronder (RETIRED) <jsbronder>
Component: CatalystAssignee: Gentoo Catalyst Developers <catalyst>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: catalyst-2.0.5-nb2-kernel-packages.patch

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.