Re: Missing files from ALPHA4 memstick.img
- In reply to: Sulev-Madis Silber : "Re: Missing files from ALPHA4 memstick.img"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Oct 2025 11:56:12 UTC
On 9/30/25 10:42 AM, Sulev-Madis Silber wrote:
>
> On September 30, 2025 11:03:33 AM GMT+03:00, Johan Hendriks <joh.hendriks@gmail.com> 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
>
Sorry to bother you guys again. But if i give the command pkg -r
/tmp/mnt install FreeBSD-set-base I get the following error like it does
not know where to find the packages:
This is on FreeBSD15 ALPHA5
Updating FreeBSD-ports repository catalog...
pkg: No SRV record found for the repo 'FreeBSD-ports'
pkg: An error occurred while fetching package: No error
pkg: packagesite URL erro for pkg+https://pkg.FreeBSD.org/.........
.......
Unable to update repository FreeBSD-ports
Same for FreeBSD-port-kmods
What am i missing?