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

Andrei Borzenkov arvidjaar at gmail.com
Wed Jun 15 15:56:12 UTC 2022


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.


More information about the systemd-devel mailing list