Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173826 - netboot2 target enhancements
Summary: netboot2 target enhancements
Status: RESOLVED FIXED
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: InVCS
Depends on:
Blocks:
 
Reported: 2007-04-09 05:45 UTC by Andrew Gaffney (RETIRED)
Modified: 2007-04-12 19:43 UTC (History)
1 user (show)

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


Attachments
patch (catalyst.patch,7.27 KB, patch)
2007-04-09 05:46 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new patch (catalyst.patch,7.14 KB, patch)
2007-04-11 18:14 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new new patch (catalyst.patch,7.78 KB, patch)
2007-04-11 20:14 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new new new patch (catalyst.patch,7.88 KB, patch)
2007-04-12 00:57 UTC, Andrew Gaffney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2007-04-09 05:45:40 UTC
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
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-09 05:46:07 UTC
Created attachment 115787 [details, diff]
patch
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-10 21:39:42 UTC
(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.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-10 23:25:56 UTC
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
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-10 23:27:41 UTC
(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.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-11 18:14:42 UTC
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.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-11 20:14:36 UTC
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/.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-12 00:57:59 UTC
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.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-12 11:57:10 UTC
Alright... this patch is now applied to SVN...
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-12 19:43:03 UTC
This is fixed in 2.0.4 which was just released.