]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: adjust what systemd.firstboot=no on the kernel cmdline does
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Nov 2023 17:25:53 +0000 (18:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Dec 2023 10:10:47 +0000 (11:10 +0100)
commit0a9c4a108258ce91edd27d224b0c52b431a75d87
treed04067a00e2dcd7761afa45525cec234629f2592
parent6f9dd36990fca2f99fab104b4bc78044de05c07e
firstboot: adjust what systemd.firstboot=no on the kernel cmdline does

So far by setting systemd.firstboot=no simply short-cut the whole tool
and made it exit early. This is against what the docs say though: they
just claim the user isn't asked for questions anymore. Let's change
behaviour so that the code actually matches the docs, or more
specifically: if credentials are passed into firstboot, then honour
them, regardless of the kernel cmdline option.

After all, if we get explicit data passed in we should operate on it,
and then leave systemd.firstboot=no just affect the interactivity.

I think this was actually mostly a bug introduced because the credential
stuff was added after the kernel cmdline option, hence this just catches
up with the new addition.
src/firstboot/firstboot.c