| 1 | [Unit] |
| 2 | Description=Generate authselect configuration on first boot (empty /etc) |
| 3 | Documentation=man:authselect(8) |
| 4 | ConditionFirstBoot=yes |
| 5 | ConditionPathIsReadWrite=/etc |
| 6 | DefaultDependencies=no |
| 7 | After=systemd-remount-fs.service |
| 8 | Wants=first-boot-complete.target |
| 9 | Before=first-boot-complete.target sysinit.target |
| 10 | Conflicts=shutdown.target |
| 11 | Before=shutdown.target |
| 12 | |
| 13 | [Service] |
| 14 | Type=oneshot |
| 15 | RemainAfterExit=yes |
| 16 | ExecStart=/usr/bin/authselect select @system-default --force --nobackup |
| 17 | |
| 18 | [Install] |
| 19 | WantedBy=sysinit.target |