Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Mar 2021 13:39:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254062] loader dies when /boot is missing, even if live backups exist
Message-ID:  <bug-254062-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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: bugs@FreeBSD.org
          Reporter: m.bueker@berlin.de

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.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254062-227>