Bug 186030 - [nanobsd] [patch] Use gpart instead of fdisk, and create code image before full disk image
Summary: [nanobsd] [patch] Use gpart instead of fdisk, and create code image before fu...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-23 11:20 UTC by Arrigo Marchiori
Modified: 2018-05-28 19:42 UTC (History)
0 users

See Also:


Attachments
file.diff (6.36 KB, patch)
2014-01-23 11:20 UTC, Arrigo Marchiori
no flags Details | Diff
Patch adapted to current nanobsd.sh from 10-STABLE (6.78 KB, patch)
2015-10-02 15:24 UTC, Arrigo Marchiori
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arrigo Marchiori 2014-01-23 11:20:00 UTC
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:
Comment 1 Warner Losh freebsd_committer 2014-03-14 04:59:04 UTC
Responsible Changed
From-To: freebsd-bugs->imp

I'll take it.
Comment 2 Arrigo Marchiori 2015-10-02 15:24:27 UTC
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.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:42:48 UTC
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.