I've been doing a bit of hacking on the netboot2 target. I just used the following patch to build a minimal netboot image containing dropbear for x86. Here's a summary of the changes I made: * netboot2/packages/pkgname/files and netboot2/extra_files replaced with netboot2/packages/files (although, this could just become netboot2/files) * netboot2/{rm,empty} options added * netboot2/overlay added (overlays copied into /tmp/image for inclusion in initramfs * builddate automatically generated for busybox config * general cleanups
Created attachment 115787 [details, diff] patch
(In reply to comment #0) > * netboot2/packages/pkgname/files and netboot2/extra_files replaced with > netboot2/packages/files (although, this could just become netboot2/files) I like it, but I don't want it until 2.1 happens. > * netboot2/{rm,empty} options added I think these should be fine since they won't break backwards compatibility. > * netboot2/overlay added (overlays copied into /tmp/image for inclusion in > initramfs Same as above. > * builddate automatically generated for busybox config I'm just curious why this is necessary. > * general cleanups What did you change? I have no problems with general cleanups that don't break backwards compatibility.
General cleanups: * Moved various spec values to valid_values instead of requires_values * Killed use of ${clst_root_path} in pre-kmerge.sh since it didn't make sense and was "" anyway * Killed custom set_dest_path() since settings["destpath"] isn't used in target * Removed extra 'echo ""' at end of netboot2-copyfile.sh
(In reply to comment #2) > > * builddate automatically generated for busybox config > > I'm just curious why this is necessary. There was a comment somewhere in the busybox stuff (don't recall where) that busybox `date` needed a builddate in YYYYMMDD format.
Created attachment 115983 [details, diff] new patch This patch has some more enhancements (automatically creates netbootable image on sparc64) as well as removing the changes that break backwards compatability (netboot2/packages/foo/files+netboot2/extra_files -> netboot2/files). It also relies on System.map-* being present in the kerncache tarball to properly build a sparc64 netboot, but it will not break any other target if using an older genkernel.
Created attachment 115991 [details, diff] new new patch This patch adds the netboot2/busybox_config option. If this option is specified, the file is used to build busybox. If not, the default from ${clst_sharedir}/targets/netboot2/nb-busybox.cf is used. You will need to move x86/nb-busybox.cf from genkernel into targets/netboot2/.
Created attachment 116005 [details, diff] new new new patch This adds a bit of code to netboot2-final.sh to run piggyback for sparc32 and piggyback64 for sparc64 instead of piggyback64 unconditionally.
Alright... this patch is now applied to SVN...
This is fixed in 2.0.4 which was just released.