[systemd-devel] container login

Lennart Poettering lennart at poettering.net
Wed Oct 22 16:31:15 PDT 2014


On Sat, 30.08.14 21:26, Ruben Kerkhof (ruben at rubenkerkhof.com) wrote:

> Hi all,

heya,

> I'm playing around a bit with systemd-nspawn, and the new --volatile option.
> I've got it mostly working so far, except for loggin in to the container as root.
> 
> Looking at the code, IIUC systemd-firstboot is supposed to prompt for the root password, but it doesn't do this if /etc/shadow exists.
> systemd-sysusers creates the root account, and, since 9ab315ccf22a,
> also creates a (locked) entry in /etc/shadow.
> 
> Now the obvious question is, how do I get into my volatile container?

Indeed! This was borked. I have now fix this by ordering
systemd-firstboot before systemd-sysuers, so that it can ask for the
root password, before sysusers adds in the rest.

Thanks for te pointer!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list