ostree-remount: Order before systemd-rfkill.*
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 22 Jun 2021 15:18:48 +0000 (11:18 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 22 Jun 2021 15:22:47 +0000 (11:22 -0400)
The `systemd-rfkill.*` service falls in the category of early things
that need write access to `/var`, so we need to make sure we run before
or it might hit the read-only sysroot.

The long-term fix for this is
https://github.com/ostreedev/ostree/issues/2115.

Closes: https://github.com/coreos/fedora-coreos-tracker/issues/746
src/boot/ostree-remount.service

index af40453cf1b328a43ed875dd3cd0ff4e42c7bada..a54114f9b0f52ac288f4d9c80c70949b43a095a1 100644 (file)
@@ -28,7 +28,7 @@ After=systemd-remount-fs.service
 # But we run *before* most other core bootup services that need write access to /etc and /var
 Before=local-fs.target umount.target
 Before=systemd-random-seed.service plymouth-read-write.service systemd-journal-flush.service
-Before=systemd-tmpfiles-setup.service
+Before=systemd-tmpfiles-setup.service systemd-rfkill.service systemd-rfkill.socket
 
 [Service]
 Type=oneshot