Re: PKGBASE in ZFS Boot Environments World

From: Sulev-Madis Silber <freebsd-stable-freebsd-org730_at_ketas.si.pri.ee>
Date: Mon, 20 Oct 2025 17:12:44 UTC
i have been playing too

http://ketas.si.pri.ee/misc/recovery.1760980081.sh


On October 20, 2025 5:05:27 PM GMT+03:00, vermaden <vermaden@interia.pl> wrote:
>Found a way to overcome that limitation ... by creating a separate /RESCUE (not /rescue) dir with copy of /boot and pkg-static(8) command.
>
>That way one can restore /boot and reboot into different ZFS Boot Environment.
>
>Details here in the 'Additional Independent Rescue' section at the end:
>- https://vermaden.wordpress.com/2025/10/20/brave-new-pkgbase-world/
>
>Regards,
>vermaden
>
>
>
>Temat: PKGBASE in ZFS Boot Environments World
>Data: 2025-10-16 10:04
>Nadawca: "vermaden" &lt;vermaden@interia.pl>
>Adresat: freebsd-stable@FreeBSD.org; freebsd-pkgbase@FreeBSD.org; 
>
>>> We know that 'pkg delete -afy' will delete all PKGBASE
>>> packages without asking ... but that will also render
>>> ZFS Boot Environments USELESS as there is no
>>> loader(8) anymore to show the ZFS boot menu for BE
>>> selection.
>> 
>> OK ls boot
>> boot
>>  d  zfs
>>  d  efi
>>     loader.conf
>>     entropy
>>  d  firmware
>> 
>> My proposal - always keep a MINIMUM set of files allowing
>> to show loader(8) boot menu - so anyone - even after wiping
>> their FreeBSD system with pkg(8) - will be able to boot into
>> other backup ZFS Boot Environment.
> 
>