[Unit] Description=Initial cloud-init job (pre-networking) DefaultDependencies=no Wants=local-fs.target Wants=network-pre.target After=local-fs.target Before=basic.target Before=network-pre.target Before=shutdown.target Conflicts=shutdown.target [Service] Type=oneshot ExecStart=/usr/bin/cloud-init init --local ExecStart=/bin/touch /run/cloud-init/network-config-ready RemainAfterExit=yes TimeoutSec=0 # Output needs to appear in instance console output StandardOutput=journal+console [Install] WantedBy=cloud-init.target