[systemd-devel] Running actual systemd-based distribution image in systemd-nspawn

Lennart Poettering lennart at poettering.net
Thu Jun 30 20:18:44 UTC 2022


On Mi, 15.06.22 18:56, Andrei Borzenkov (arvidjaar at gmail.com) wrote:

> I tried it (loop mounting qemu image):
>
> systemd-nspawn -D ./hd0 -b
>
> and it failed miserably with "Timeout waiting for device
> dev-disk-by...". Which is not surprising as there are no device units
> inside of container (it stops in single user allowing me to use sysctl
> -t device).
>
> Is it supposed to work at all? Even if I bind mount /dev/disk it does
> not help as systemd does not care whether device is actually present or not.

Yes, this should just work. I use it daily for work.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list