mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 10:22:12 +01:00
sys-apps/ignition: move network depdencies to ignition services
Explicitly order ignition-{disks,files} after the network units, and
switch from Requires to Wants in so ignition can still function without
them.
This commit is contained in:
parent
62e67d0faf
commit
f5c4dde1d3
@ -8,6 +8,14 @@ Before=local-fs-pre.target
|
||||
Requires=mnt-oem.mount
|
||||
After=mnt-oem.mount
|
||||
|
||||
# setup networking
|
||||
Wants=initrd-systemd-networkd.service
|
||||
After=initrd-systemd-networkd.service
|
||||
|
||||
# generate resolv.conf
|
||||
Wants=initrd-systemd-resolved.service
|
||||
After=initrd-systemd-resolved.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
TimeoutStartSec=30s
|
||||
|
||||
@ -9,6 +9,14 @@ After=initrd-root-fs.target
|
||||
Requires=mnt-oem.mount
|
||||
After=mnt-oem.mount
|
||||
|
||||
# setup networking
|
||||
Wants=initrd-systemd-networkd.service
|
||||
After=initrd-systemd-networkd.service
|
||||
|
||||
# generate resolv.conf
|
||||
Wants=initrd-systemd-resolved.service
|
||||
After=initrd-systemd-resolved.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
TimeoutStartSec=30s
|
||||
|
||||
@ -10,11 +10,3 @@ After=ignition-disks.service
|
||||
|
||||
Requires=ignition-files.service
|
||||
After=ignition-files.service
|
||||
|
||||
# setup networking
|
||||
Requires=initrd-systemd-networkd.service
|
||||
After=initrd-systemd-networkd.service
|
||||
|
||||
# generate resolv.conf
|
||||
Requires=initrd-systemd-resolved.service
|
||||
After=initrd-systemd-resolved.service
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user