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:
and is currently under discussion:
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:
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.
For bugs that match the following
- Status Is In progress
- Untouched since 2018-01-01.
- Affects Base System OR Documentation
Reset to open status.
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.