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.
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.
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" <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.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 12:21:48 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
2 files (2,024K bytes) |
| Messages: | 183,175 |
| Posted today: | 1 |