units: order systemd-firstboot after systemd-tmpfiles-setup

We may copy files from factory to /etc. The default mkosi config has
factory/etc/vconsole.conf. systemd-firstboot would race with tmpfiles-setup,
and sometimes ask for the keymap, and sometimes not.

I guess that if there are files in factory, we shouldn't ask the user for
the same configuration.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-25 13:36:17 +02:00
parent 8eb668b9ab
commit b2ce20aa0c

View file

@ -15,7 +15,7 @@ ConditionPathIsReadWrite=/etc
ConditionFirstBoot=yes
DefaultDependencies=no
After=systemd-remount-fs.service systemd-sysusers.service
After=systemd-remount-fs.service systemd-sysusers.service systemd-tmpfiles-setup.service
Wants=first-boot-complete.target
Before=first-boot-complete.target sysinit.target
Conflicts=shutdown.target