Skip to content

Commit be5bd2e

Browse files
atxkeszybz
authored andcommitted
[email protected]: start after /var/lib/machines is mounted (systemd#6079)
This fixes a race condition during boot, where an nspawn container would start before /var/lib/machines got mounted resulting in a failure.
1 parent fbc11da commit be5bd2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

units/[email protected]

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Documentation=man:systemd-nspawn(1)
1111
PartOf=machines.target
1212
Before=machines.target
1313
After=network.target systemd-resolved.service
14+
RequiresMountsFor=/var/lib/machines
1415

1516
[Service]
1617
ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i

0 commit comments

Comments
 (0)