Files
build/packages/bsp/common/lib/systemd/system/armbian-firstrun.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

20 lines
522 B
Desktop File

# Armbian firstrun service
# Regenerates the SSH keys and performs additional first run tweaks
# This service will run in parallel with other services
[Unit]
Description=Armbian first run tasks
Wants=first-boot-complete.target
Before=getty.target system-getty.slice first-boot-complete.target ssh.service
After=armbian-resize-filesystem.service
ConditionFirstBoot=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/armbian/armbian-firstrun start
TimeoutStartSec=2min
[Install]
WantedBy=multi-user.target