Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2024 20:13:51 +0000
From:      Pat <cli_junkie@protonmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Updating disconnected systems
Message-ID:  <G8dBW3SzE6WYKCOXZESs3SNfBWjVOf6Y--Vxh0ZlPGRlF5WsAdnpoM9Pklhrh0F9yDFYwahYLjwp-v1_9iMguovobdt2hBY0u9BXMQyPhkE=@protonmail.com>
In-Reply-To: <adc06fec-624b-43a1-b5cc-2ffa244d093a@app.fastmail.com>
References:  <a-nQroQLbvGm2LsqfHR52CPKJuHGtm_b5YXqfRK5G6PX3HvyPeaXwzEjMU6G43yFUNWWAIlTQYSAgrrBK_Mto8E7sVjAbl2D9nByIV-aio8=@protonmail.com> <adc06fec-624b-43a1-b5cc-2ffa244d093a@app.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Monday, September 30th, 2024 at 06:50, Dave Cottlehuber <dch@skunkwerks.=
at> wrote:

>=20
>=20
> On Fri, 27 Sep 2024, at 19:18, Pat wrote:
>=20
> > I figure can use Poudriere for packages, but that doesn't work for the
> > core system as far as I can tell?
>=20
>=20
> Yes this is also possible.
>=20
> Klara Systems released a tool, sync-be, to use zfs boot environments and
> poudriere-image which works very nicely in airgapped systems.
>=20
> It is a lot less complicated to setup and use than it appears to be,
> probably is exactly what you want.
>=20
> - servers configured with zfs boot environments
> - poudriere-image (builds freebsd from sources and then builds packages)
> - the resulting output is a new zfs boot environment, as a single tarball
> - use https://github.com/KlaraSystems/sync-be to fetch and deploy it
> - insert airgaps at appropriate points in the process
>=20
> So a high-level upgrade process looks like:
>=20
> - [net] update src & ports, and ports distfile tarballs
> - [air] move them to your build machine
> - `poudriere image -t zfs+send+be -j builder ...`
> - [air] move the image file to the airgapped system
> - install `/usr/local/bin/sync-be 13.4-RELEASE /etc/syncbe.conf < be20240=
9301146.be.zfs`
> - `bectl activate -t ...` and reboot
>=20
> the boot env allows a trivial rollback in case of issues to the prior
> boot env.
>=20
> The syncbe.conf file takes a little bit of work to prepare, it's the
> server-specific files and directories that should be shifted from
> the current BE (root / dataset) into the new one. /etc/sshd/, /etc/hostid=
,
> password files etc are common examples, and any custom stuff in /usr/loca=
l/etc/
> or similar depending on your circumstances.
>=20
> A+
> Dave

Thank you Dave, and previously to Dewayne as well. Very nice
and useful information.

I plan to start this migration soon and may be back with further
questions as I progress.

And apologies for the extended delay, I've been traveling.

Regards,
Pat



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