Updating FreeBSD 12.0 on a raspberry pi 3 B+

Karl Denninger karl at denninger.net
Sun Jun 2 03:29:05 UTC 2019


On 6/1/2019 15:33, Jack Raats wrote:
> Hi
>  
>
> I want to update FreeBSD on a raspberry pi 3 B+
>
>
> On a VPS with lots of cores and RAM I build FreeBSD using crochet. Every night I make an image, which can be downloaded at www.jarasoft.net/rpi
>
> The raspberry pi is running FreeBSD 12.0-STABLE build a fee weeks ago and now I want to update this working FreeBSD.
>
> I could make a new image and install everything from the start but that will take a lot of time or can this be automated?
>
> On the other end I could use the builded binaries from my VPS, copy them to the Pi and run make install kernel and make install world?
>
> Is this being done??? 
>
> Or is there another way?
>
IF all of the below are true:

1. Both old and new are built with Crochet.

2. The size of the system partition is the same, and the packages, if
any, that are included are compatible.

3. Local changes are all saved to the mounted configuration directory,
which is copied to RAMdisk on boot.

THEN

You can replace the system image with a new one, OR you can copy the
/cfg directory from the old to the new image, and perform the update
this way.

I do this with a production distribution.  Note that all three of the
above have to be true or unexpected things are likely to happen.

Crochet builds typically do not have a "ping-pong" system partition
(that is, two of them with one set to be the active, booted one) so you
can't update "in place" without special consideration.  If you DO build
with a "ping-pong" configuration, and have a system that can boot from
the "active" set one, then you can do it this way as well (load the new
system image in the not-active system partition, change the active,
reboot) but the above three considerations apply (the new build has to
fit in the space available, basically.)

-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4897 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20190601/ba575087/attachment.bin>


More information about the freebsd-arm mailing list