Files
build/packages/bsp/common/lib/systemd/system/armbian-firstrun-config.service
Derek c8855aa08d modifications of firstrun scripts (#3642)
* modifications of firstrun scripts

* Further making use of systemd statements to order firstboot scripts

* allow systemd ordering of ssh to avoid restarting in firstrun script

* suggested changes, add wants=first-boot-complete

* Remove SSH keys in debootstrap process

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-05-07 15:52:31 +02:00

21 lines
565 B
Desktop File

# Armbian firstrun configuration service
# This service will run in parallel with other services
[Unit]
Description=Armbian first run optional user configuration
Wants=network-online.target first-boot-complete.target
After=network.target network-online.target
Before=first-boot-complete.target
ConditionPathExists=/boot/armbian_first_run.txt
ConditionPathExists=/root/.not_logged_in_yet
ConditionFirstBoot=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/armbian/armbian-firstrun-config
TimeoutStartSec=2min
[Install]
WantedBy=multi-user.target