Re: FreeBSD 15.2-BETA1 Now Available
- Reply: Mark Millard : "Re: FreeBSD 15.2-BETA1 Now Available"
- In reply to: Mark Millard : "Re: FreeBSD 15.2-BETA1 Now Available"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Nov 2026 22:59:56 UTC
Hi,
> Checking how my UFS context would be handled: fails.
>
> For Reference:
>
> # mount
> /dev/gpt/PBaseUFS on / (ufs, NFS exported, local, noatime, soft-updates)
> devfs on /dev (devfs)
> /dev/gpt/PBaseEFI on /boot/efi (msdosfs, local, noatime)
>
> # mount | awk '/ \/ / {print $1}'
> /dev/gpt/PBaseUFS
>
> # mount | awk '/ \/ / {print $1}' | grep -q '^/dev/label' 1> /dev/null 2> /dev/null
> #
>
> # mount | awk '/ \/ / {print $1}' | grep -o -E '[a-z]+[0-9]+' | head -1
> #
>
> So it looks like the UFS handling in my context would fail in:
>
> . . .
>
> # FIND SYSTEM ROOT
> BOOT_ROOT=$( mount | awk '/ \/ / {print $1}' )
>
> # CHECK IF WE HAVE ZFS OR UFS SYSTEM INSTALLATION
> if echo "${BOOT_ROOT}" | grep -q '^/' 1> /dev/null 2> /dev/null
> then
>
> echo "INFO: detected UFS based FreeBSD installation"
>
> # UFS DETECT glabel(8) LABEL
> if echo "${BOOT_ROOT}" | grep -q '^/dev/label' 1> /dev/null 2> /dev/null
> then
>
> # UFS ON glabel(8) DEVICE
> BOOT_LABEL=$( echo "${BOOT_ROOT}" | sed -e s./dev/..g )
> BOOT_DISK=$( glabel status | grep "${BOOT_LABEL}" | awk '{print $NF}' )
> BOOT_DISK=$( echo "${BOOT_DISK}" | grep -o -E '[a-z]+[0-9]+' | head -1 )
>
> else
>
> # UFS RAW DISK DEVICE
> BOOT_DISK=$( echo "${BOOT_ROOT}" | grep -o -E '[a-z]+[0-9]+' | head -1 )
>
> fi
>
> else
>
> . . .
>
>
> There could be /dev/ufs/ with ufs file system labels in use, if I
> remember right, not that I have such.
>
> --
> ===
> Mark Millard
> marklmi at yahoo.com
I tested pkgbase(8) against all possible 'Auto' options in bsdinstall(8) command - like 'Auto (ZFS)' and 'Auto (UFS)'. Is it possible to do such install as You have with 'Auto (UFS)' or its purely custom command by command FreeBSD installation?
To be honest - I also plan to 'support' these 'custom' installations - its just I have 'access' to such systems only if someone 'shares' their setup - like You - so I (probably not today) will look into command outputs You provided - thank You for that - and plan to add needed changes to pkgbase(8) tool.
Regards,
vermaden