mirror of
https://github.com/0x1d/terraform-docker-packer.git
synced 2025-12-16 22:36:44 +01:00
Add firstboot provisioning
This commit is contained in:
14
rootfs/lib/systemd/system/firstboot.service
Normal file
14
rootfs/lib/systemd/system/firstboot.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=FirstBoot
|
||||
After=network.target apt-daily.service apt-daily-upgrade.service
|
||||
Before=rc-local.service
|
||||
ConditionFileNotEmpty=/lib/firstboot.sh
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/bash /lib/firstboot.sh
|
||||
ExecStartPost=/bin/mv /lib/firstboot.sh /lib/firstboot.sh.done
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user