Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2012 15:20:29 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Arrigo Marchiori <ardovm@yahoo.it>
Cc:        freebsd-embedded@freebsd.org
Subject:   Re: [PATCH] Using gpart instead of fdisk in nanobsd
Message-ID:  <14610415058.20120416152029@serebryakov.spb.ru>
In-Reply-To: <20120411081118.GA9734@snail.casa>
References:  <20120411081118.GA9734@snail.casa>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Arrigo.
You wrote 11 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 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.

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14610415058.20120416152029>