emergencyMode, emergencyAccess: cross reference options in docs.

I was confused why I could not get an emergency access console despite setting systemd.emergencyMode=true.

Turns out there is another similar option `boot.initrd.systemd.emergencyAccess` that I should have used.

This is confusing and this change should make it more clear vie the docs of both these options.
This commit is contained in:
DavHau 2025-05-24 13:34:38 +07:00
parent 2795c506fe
commit d5d323a907
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
options,
...
}:
{
###### interface
@ -15,6 +20,8 @@
instances) have no console of any kind, emergency mode doesn't
make sense, and it's better to continue with the boot insofar
as possible.
For initrd emergency access, use ${options.boot.initrd.systemd.emergencyAccess} instead.
'';
};

View file

@ -266,6 +266,8 @@ in
Can also be set to a hashed super user password to allow
authenticated access to the emergency mode.
For emergency access after initrd, use `${options.systemd.enableEmergencyMode}` instead.
'';
default = false;
};