mirror of
https://github.com/clearlinux/micro-config-drive.git
synced 2026-08-27 08:55:49 +00:00
1c97e18f07
cloud-init-pre-network: runs before network service. this service gets metadata from local datasources in order to configure network stuff before network service and configures the instance on its first booot cloud-init: runs after network service and will get userdata/metadata from datasources(local/network). This service fixes disk and filesystem add first-boot-setup and no-network options update documentation
19 lines
460 B
Plaintext
19 lines
460 B
Plaintext
[Unit]
|
|
Description=cloud-init pre-network job
|
|
After=local-fs.target
|
|
Before=cloud-init.service network.target systemd-networkd.service
|
|
Wants=local-fs.target sshd.service sshd-keygen.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@prefix@/bin/cloud-init --first-boot-setup --no-network --metadata
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
PrivateTmp=yes
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|