]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: handle missing root password entries
authorDan Nicholson <dbn@endlessos.org>
Tue, 30 Jul 2024 19:42:26 +0000 (13:42 -0600)
committerDan Nicholson <dbn@endlessos.org>
Wed, 31 Jul 2024 10:02:39 +0000 (04:02 -0600)
commit2319154a6bec7b8c42e901dfacaefe95bf4e3750
tree0bdc26ddbf693d50f48668ea1ac0053264961f2f
parent5088de9daa156a095e79684c658f9035db971538
firstboot: handle missing root password entries

If /etc/passwd and/or /etc/shadow exist but don't have an existing root entry,
one needs to be added. Previously this only worked if the files didn't exist.
src/firstboot/firstboot.c
test/units/TEST-74-AUX-UTILS.firstboot.sh