Fix ZFS root import stall on baremetal-gui reboot #41

Merged
beatzaplenty merged 1 commits from worktree-baremetal-emergency-access into main 2026-07-22 03:48:48 +00:00
+10
View File
@@ -25,4 +25,14 @@
enable = true;
enable32Bit = true;
};
# The systemd-based initrd (default here since this host has a ZFS root --
# see modules/disko/baremetal.nix) locks the root account by default, so
# sulogin refuses to hand over a shell if something in the initrd (e.g.
# the ZFS pool import) fails and it drops to emergency mode -- confirmed
# live: it just loops re-entering the target instead of prompting. This
# only affects the pre-switch-root initrd shell, not the installed
# system's own login, and is worth the tradeoff on a box already reachable
# at the physical console.
boot.initrd.systemd.emergencyAccess = true;
}