https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254062
Bug ID: 254062
Summary: loader dies when /boot is missing, even if live
backups exist
Product: Base System
Version: 13.0-STABLE
Hardware: amd64
URL: https://forums.freebsd.org/threads/boot-directory-dele
ted-how-to-recover-with-zfs-backups.79181/
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Steps to reproduce:
1. Create a beadm(1) backup (or manual clone) of a zfs root+boot dataset
2. Delete the /boot directory in the live system
3. Reboot
Result: the loader dies (because /boot/lua/loader.lua doesn't exist).
It is, however, possible to recover in this situation with the following
commands:
1. set currdev=zfs:zroot/ROOT/backup:
2. include /boot/lua/loader.lua
(See a full description here:
https://forums.freebsd.org/threads/boot-directory-deleted-how-to-recover-with-zfs-backups.79181/
)
Instead of dying instantly, the loader might try finding a valid /boot
directory on another dataset (e.g. siblings to zroot/ROOT/default) and offer
(or try) to load from them.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"