[systemd-devel] Fedora 21 and systemd-nspawn

Matthew Karas mkarascybi at gmail.com
Mon Jun 15 10:22:42 PDT 2015


Yes - that seems to have let me set the password.  Now I can get
started learning about this.

Thanks a lot!

Though it does return an error about selinux when I start the shell to
set the password

$ sudo systemd-nspawn -bD /srv/srv1
Spawning container srv1 on /srv/srv1.
Press ^] three times within 1s to kill container.
Failed to create directory /srv/srv1//sys/fs/selinux: Read-only file system
Failed to create directory /srv/srv1//sys/fs/selinux: Read-only file system

On Mon, Jun 15, 2015 at 12:24 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Mon, 15.06.15 12:21, Matthew Karas (mkarascybi at gmail.com) wrote:
>
>> Here is my output
>>
>> https://gist.github.com/mkcybi/eae6a2a67c5d6666c864
>
> This line is probably the error:
>
> rename("/etc/nshadow", "/etc/shadow")   = -1 EACCES (Permission
> denied)
>
> For some reason the container cannot reply /etc/shadow in it.
>
> MAybe an SELinux problem? Have you tried turning it off?
>
> Lennart
>
> --
> Lennart Poettering, Red Hat


More information about the systemd-devel mailing list