mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
nspawn: explicitly load units beforehand so that DeviceAllow= syntax works
Yuck, but I don't see any prettier solution. Fixes: #13130
This commit is contained in:
parent
877aa0bdcc
commit
31ea9c89d4
@ -16,6 +16,8 @@ After=network.target systemd-resolved.service
|
||||
RequiresMountsFor=/var/lib/machines
|
||||
|
||||
[Service]
|
||||
# Make sure the DeviceAllow= lines below can properly resolve the 'block-loop' expression (and others)
|
||||
ExecStartPre=-/sbin/modprobe -abq tun loop dm-mod
|
||||
ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i
|
||||
KillMode=mixed
|
||||
Type=notify
|
||||
|
Loading…
Reference in New Issue
Block a user