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.
Created attachment 143001 [details, diff] catalyst-2.0.5-nb2-kernel-packages.patch
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.
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.
(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.