| 1 |
[Unit] |
| 2 |
Description=Netplan Backend Configuration |
| 3 |
Documentation=man:netplan(8) |
| 4 |
Documentation=https://netplan.readthedocs.io/en/stable/netplan-yaml/ |
| 5 |
|
| 6 |
DefaultDependencies=no |
| 7 |
Wants=systemd-udevd.service |
| 8 |
Conflicts=shutdown.target |
| 9 |
Before=shutdown.target network-pre.target |
| 10 |
Before=systemd-networkd.service NetworkManager.service |
| •11 |
# Run After=systemd-sysusers.service, to allow lookup of the "systemd-network" GID |
| 12 |
# (LP: #2071747) |
| •13 |
After=local-fs.target systemd-sysusers.service systemd-udevd-control.socket |
| 14 |
|
| 15 |
[Service] |
| 16 |
Type=oneshot |
| 17 |
RemainAfterExit=true |
| 18 |
Environment=NETPLAN_PARSER_IGNORE_ERRORS=1 |
| 19 |
ExecStart=/usr/libexec/netplan/configure |
| 20 |
# 'udevadm trigger' is needed to rename interfaces at boot time: |
| 21 |
# https://github.com/canonical/netplan/pull/479 |
| 22 |
ExecStartPost=udevadm control --reload |
| 23 |
ExecStartPost=udevadm trigger --action=add --subsystem-match=net |
| 24 |
|
| 25 |
[Install] |
| 26 |
WantedBy=sysinit.target |