Raspi-image-spec/rootfs/etc/systemd/system
Simon McVittie 44b845e83f rootfs: Eliminate circular dependency between systemd units
rpi-reconfigure-raspi-firmware.service requires /boot/firmware to be
mounted, but mounting local filesystems requires local-fs-pre.target,
so trying to run rpi-reconfigure-raspi-firmware.service before
local-fs-pre.target results in a cyclic order dependency. systemd
breaks the cycle in an arbitrary place, and the result is unlikely to be
what we want.

Instead, delay reconfiguration of config.txt until after local
filesystems are mounted, but before sysinit.target. This breaks the cycle
(image-specs#49).

This still orders it before all non-early-boot services, because
sysinit.target is part of the DefaultDependencies; so in particular
it will finish before rpi-generate-ssh-host-keys.service starts, which
avoids the two services fighting over the dpkg lock (image-specs#45).

Resolves: image-specs#45
Resolves: image-specs#49
Signed-off-by: Simon McVittie <smcv@debian.org>
2021-04-25 11:17:50 +01:00
..
rpi-generate-ssh-host-keys.service rootfs subdirectory 2020-08-15 05:06:18 +00:00
rpi-reconfigure-raspi-firmware.service rootfs: Eliminate circular dependency between systemd units 2021-04-25 11:17:50 +01:00
rpi-resizerootfs.service rootfs subdirectory 2020-08-15 05:06:18 +00:00
rpi-set-sysconf.service rootfs subdirectory 2020-08-15 05:06:18 +00:00