]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysusers: read passwords from the credentials logic
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Mar 2021 09:34:20 +0000 (10:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Mar 2021 11:20:52 +0000 (12:20 +0100)
commit99e9f896fb491d13c6d02f6f5bbfceabae833f05
tree40971a8dc2844edc5b0646c356b343f615d5aae9
parentfc682be2612e7016188118f8ce82f9351dc2e9bf
sysusers: read passwords from the credentials logic

Let's make use of our own credentials infrastructure in our tools: let's
hook up systemd-sysusers with the credentials logic, so that the root
password can be provisioned this way. This is really useful when working
with stateless systems, in particular nspawn's "--volatile=yes" switch,
as this works now:

 # systemd-nspawn -i foo.raw --volatile=yes --set-credential=passwd.plaintext-password:foo

For the first time we have a nice, non-interactive way to provision the
root password for a fully stateless system from the container manager.
Yay!
man/systemd-sysusers.xml
src/sysusers/sysusers.c
units/systemd-sysusers.service