mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* 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>
21 lines
565 B
Desktop File
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
|