Hu wrote: Sat May 23, 2026 8:57 pm
More generally, what does it mean that "the primary root fails"? Does that mean the primary root block device was not found, and so could not be mounted? Is it a failure if the root block device is found, but contains a filesystem that cannot be mounted? Is it a failure if the root filesystem mounts, but then init crashes, resulting in a kernel panic? What if init works fine, but critical programs from the boot runlevel are broken, causing the system to be effectively unusable? Some failure modes require considerably more state tracking than others to detect that a failure has happened and that a recovery is needed.
Basically any of the problems you've just named.
The reason I set up these backups is because I do a lot of unhinged tinkering with my software, which sometimes results in an unbootable machine, in which case a backup of the last functioning installation is nice to have. Some problems I have encountered include (but are not limited to):
- /sbin/init is gone.
- Messed-up PAM configuration.
All of these were my fault, and I'd rather not have to panic next time I mess with something I don't entirely understand and urgently need to use my computer.
You're right that this would require a lot of state tracking. Maybe EFI variables? The only problem with those is that they work different on every system, and if you mess something up, you may brick your motherboard.