mirror of
https://github.com/clearlinux/micro-config-drive.git
synced 2026-08-25 07:26:26 +00:00
89cbfb4313
cloud-init-firstboot service will do initial tasks * create and set up default user * get and process metadata/userdata from datasources * disable root login this service will run once (firstboot) cloud-init service won't run at the first boot but it will do at next boot times * verify/fix/resize/grow up partitions and filesystems * get and process userdata from datasources (TODO: optional)
20 lines
425 B
Plaintext
20 lines
425 B
Plaintext
[Unit]
|
|
Description=cloud-init job
|
|
After=local-fs.target network.target
|
|
Before=sshd.service sshd-keygen.service
|
|
Requires=network.target
|
|
Wants=local-fs.target sshd.service sshd-keygen.service
|
|
ConditionFirstBoot=no
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@prefix@/bin/cloud-init
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|