[PATCH] Using gpart instead of fdisk in nanobsd

Lev Serebryakov lev at FreeBSD.org
Mon Apr 16 11:20:32 UTC 2012


Hello, Arrigo.
You wrote 11 апреля 2012 г., 12:11:18:

> These are the modifications brought by the attached patch, that
> applies to the current version in 8-STABLE.

>  - the big awk script that generated the _.fdisk file now generates a
>    script named _.gpart. That script is executed right after creation.
>    I didn't look too much into the detail of that script; what I did,
>    was to "reformat" the results of its calculations into gpart
>    invocations.

>  - assignment of the variables IMG, MNT and MD are moved before the
>    script, because they are needed there.

>  - after the script, 'gpart show' is called before 'fdisk', so that
>    the output log contains both dumps of the partition table.
 Looks great. Could you add one more feature, as you already knee-deep
 in this code? It will be very useful to have mode to create only
 "upgrade" (code) partition. Now, to build upgrade image, script
 creates full disk image and then copy-out upgrade partition. It is
 not optimal, and most of time, IMHO, user need only this upgrade
 partition and not full image.

-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-embedded mailing list