Add firstboot provisioning

This commit is contained in:
2025-04-21 22:14:35 +02:00
parent b9cdb9fa15
commit e7a3587501
6 changed files with 74 additions and 4 deletions

View 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