On September 30, 2025 11:03:33 AM GMT+03:00, Johan Hendriks
<[email protected]> wrote:
>
>On 9/29/25 9:51 PM, Colin Percival wrote:
>> On 9/29/25 11:54, Johan Hendriks wrote:
>>> I just downloaded the FreeBSD-ALPHA4 memstick.img file.
>>>
>>> I have a custom install script that worked on ALPHA1.
>>> Nut now it does not work anymore.
>>>
>>> I noticed that i missed some files on the memstick image (if i am not
>>> mistaken.)
>>>
>>> I do this in my script:
>>>
>>> echo ""
>>> echo "# Install FreeBSD OS. (base.txz kernel.txz doc.txz)"
>>> echo "# This will take a few minutes."
>>> cd /usr/freebsd-dist
>>> for file in base.txz kernel.txz doc.txz;
>>> do (cat $file | tar --unlink -xpJf - -C ${mount:-/}); done
>>>
>>> But it seems there are no files in /usr/freebsd-dist anymore, except a file
>>> called MANIFEST
>>>
>>> Am i missing something?
>>
>> Yes. With the move to pkgbase, the disc1 and memstick images no longer
>> contain legacy distfiles, only pkgbase repositories.
>>
>> The legacy distfiles will remain on dvd images for the duration of FreeBSD 15
>> for the benefit of users (such as yourself!) with scripts which ingest them,
>> but they will not exist in FreeBSD 16.
>>
>That makes perfectly sense. But, (there is always a but...) How can i install
>FreeBSD from a script. Is there a simple command i can use like pkg install
>base or something
>
>
>regards,
>Johan Hendriks
>
>
yes, you do it like
pkg -r "${mount:-/}" install -x '^FreeBSD-set-(base|kernels)-'
note that you actually need to figure out what to install and i don't have
image here to look what repo names it had and so on. and was it configured
if you want to do local or remote pkg installs like this, i hope you verify it
runs, too, first. just like you did with your tar. above was example :) i can
give more of those if absolutely necessary
pkgbase gives you much more direct control, if you for example used to have tar
excludes for x before. and integrity verification should be easier too, but you
have skipped that i see