The attached patch brings two main changes to the nanobsd script: 1- gpart is used instead of fdisk; 2- the code image is created first, and then used to ``assemble'' the full disk image. The patch was first proposed on the freebsd-embedded list: http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html and is currently under discussion: http://lists.freebsd.org/pipermail/freebsd-embedded/2014-January/002216.html Another effect is that the -f option ("suppress code slice extraction") now imples the -i option ("suppress disk image build"). Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-bugs->imp I'll take it.
Created attachment 161646 [details] Patch adapted to current nanobsd.sh from 10-STABLE Since the first patch, nanobsd.sh has changed a bit. Some dd invocations now have the parameter 'conv=sparse'. I am not 100% sure I got it correctly; please help me review that.
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.