Re: FreeBSD 15.2-BETA1 Now Available

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 15 Nov 2026 22:33:40 UTC
On 11/15/26 09:04, vermaden wrote:
> Hi.
> 
> 
>> "Dag-Erling Smørgrav"
> 
>>
> 
>> This is already in progress. Writing a tool that works
> 
>> for the trivial day-to-day case like Vermaden did is easy,
> 
>> writing one that works correctly across a wider range
> 
>> of circumstances takes time.
> 
> 
> I just finished pkgbase(8) 0.3 version with these improvements:
> 
> - Take care of all ZFS pool disks to update bootcode.
> 
> - Automatically create ZFS Boot Environment on ZFS systems.
> 
> - Add version information.
> 
> - Add option to NOT update BIOS/UEFI bootcode.
> 
> - Rename pkgbase-update(8) into pkgbase(8) for simplicity.
> 
> - Add additional check if first pkg(8) update works.
> 
> - More information messages.
> 
> - Better checks.
> 
> - Add UFS support.
> 
> - Add PRERELEASE target support.
> 
> - Add BIOS bootcode update.
> 
> - Add comments in the code.
> 
> 
> Available here:
> 
> - https://github.com/vermaden/pkgbase/
> 
> 
> Regards,
> 
> vermaden
> 
> 
> 
> 

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