Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 2021 20:42:42 +0000
From:      Colin Percival <cperciva@tarsnap.com>
To:        Rafal Lukawiecki <raf@rafal.net>
Cc:        freebsd-cloud@freebsd.org
Subject:   Re: FreeBSD on AWS Graviton (t4g)
Message-ID:  <01000176c9fce377-7cb81a34-1d18-4c1f-8505-7c088db39809-000000@email.amazonses.com>
In-Reply-To: <58E304B3-F75C-4470-996F-3EF28438033E@rafal.net>
References:  <C4D2ACA9-BFFE-49C1-B8AA-72E32C9DB6C9@rafal.net> <7AA5AFAB-E42A-4A59-BCA5-9B15BD58B81B@rafal.net> <01000176bfa4236e-f12b57d0-7000-4a31-acb2-5660d60eb714-000000@email.amazonses.com> <4E347E37-113D-4AFC-BD7E-AC83FF27C2E0@rafal.net> <01000176bfc11df8-fbb42271-1837-409b-9ce5-13577e938d1c-000000@email.amazonses.com> <21F56FA2-8DBA-4D6F-B08F-848F56233B45@rafal.net> <58E304B3-F75C-4470-996F-3EF28438033E@rafal.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/3/21 10:49 AM, Rafal Lukawiecki wrote:
> I wonder if I am replicating what your AMI maker does anyway by building
> things using make, or is this still the right way to go around.

This is the right approach.  The AMI Builder extracts a disk image of the
release -- it doesn't do any building itself.

> I’ve one more question: where can find out the currently *available* level of
> the patches, ie. the “-p2” in "12.2-RELEASE-p2”? There is nowhere I could see
> on freebsd.org <http://freebsd.org> that publishes that, and I assume it has
> to be somewhere in the svn trees but I cannot find it. I would like a way of
> being able to check if I am current.

src/sys/conf/newvers.sh has the value you're looking for.

> My user data script, perhaps I should post it somewhere…:
> [...]
> sleep 10
> sync; sync; sync;
> umount /bits/usr/obj
> umount /mnt/src
> umount -f /mnt/dev
> sync; sync; sync;
> sleep 10
> sync; sync; sync;
> sleep 10
> umount -f /mnt
> sleep 10
> mkami "FreeBSD 12.2 PB 3.16" "Project Botticelli Ltd Customised FreeBSD 12.2"

All of the sync and sleep is unnecessary here; for that matter, the `umount
/mnt` is also unnecessary.  The mkami script takes care of that.  (But you do
still need to unmount anything you mounted *under* /mnt/.)

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01000176c9fce377-7cb81a34-1d18-4c1f-8505-7c088db39809-000000>