]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: fix root params with creds and prompting disabled 33876/head
authorDan Nicholson <dbn@endlessos.org>
Tue, 30 Jul 2024 13:37:40 +0000 (07:37 -0600)
committerDan Nicholson <dbn@endlessos.org>
Wed, 31 Jul 2024 10:02:43 +0000 (04:02 -0600)
commit35bc4c34240afdd55e117b909f26fa9a5dc54f3b
tree546945de6b92a9a1ea6d4e3efba299bc805e1ac1
parent2319154a6bec7b8c42e901dfacaefe95bf4e3750
firstboot: fix root params with creds and prompting disabled

Remove an early return that prevents --prompt-root-password or
--prompt-root-shell and systemd.firstboot=off using credentials. In that case,
arg_prompt_root_password and arg_prompt_root_shell will be false, but the
prompt helpers still need to be called to read the credentials. Furthermore, if
only the root shell has been set, don't overwrite the root password.
src/firstboot/firstboot.c
test/units/TEST-74-AUX-UTILS.firstboot.sh