Jonathan Lebon
8e729d511e
units: update catalog after systemd-tmpfiles runs
...
`systemd-journal-catalog-update.service` writes to `/var`. However, it's
not explicitly ordered wrt `systemd-tmpfiles-setup.service`, which means
that it may run before or after.
This is an issue for Fedora CoreOS, which uses Ignition. We want to be
able to prepare `/var` on first boot from the initrd, where the SELinux
policy is not loaded yet. This means that the hierarchy under `/var` is
not correctly labeled. We add a `Z /var - - -` tmpfiles entry so that it
gets relabeled once `/var` gets mounted post-switchroot.
So any service that tries to access `/var` before `systemd-tmpfiles`
relabels it is likely to hit `EACCES`.
Fix this by simply ordering `systemd-journal-catalog-update.service`
after `systemd-tmpfiles-setup.service`. This is also clearer since the
tmpfiles entries are the canonical source of how `/var` should be
populated.
For more context on this, see:
https://github.com/coreos/ignition/issues/635#issuecomment-446620297
2019-03-14 11:28:19 +01:00
..
2018-12-13 20:23:43 +01:00
2018-10-13 12:59:29 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-10-19 22:34:50 +02:00
2018-04-17 19:49:10 +02:00
2018-04-17 19:49:10 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-26 12:13:51 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-01-28 13:41:28 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-09-20 16:01:58 +09:00
2019-01-03 15:30:28 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-26 12:13:51 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-03-28 15:26:18 -05:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-03-07 14:42:43 +01:00
2018-06-20 12:46:18 +02:00
2018-06-20 18:14:43 +02:00
2018-09-26 18:13:32 +02:00
2018-09-26 18:13:32 +02:00
2018-09-26 18:13:32 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-04-14 15:15:19 +02:00
2018-10-19 22:34:50 +02:00
2018-10-19 22:34:50 +02:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2018-11-16 12:25:35 +01:00
2017-11-19 19:08:15 +01:00
2018-11-26 22:18:16 +01:00
2018-11-26 22:18:16 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-02-22 08:04:37 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2018-11-12 19:02:55 +01:00
2018-03-30 16:52:14 -04:00
2019-03-14 11:28:19 +01:00
2018-10-25 04:41:02 +09:00
2019-02-20 10:50:44 +02:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-03-08 15:49:10 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2019-03-05 16:52:46 +01:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-03-08 15:49:10 +01:00
2017-11-19 19:08:15 +01:00
2017-12-07 12:34:46 +01:00
2019-02-20 10:50:44 +02:00
2018-10-17 19:31:50 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-10-17 19:31:50 +02:00
2019-01-03 15:30:28 +01:00
2019-03-08 15:49:10 +01:00
2018-11-12 19:02:55 +01:00
2018-11-24 23:59:37 +09:00
2018-03-28 15:26:18 -05:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-03-22 23:41:54 +03:00
2019-02-20 10:50:44 +02:00
2019-02-20 10:50:44 +02:00
2017-12-01 18:58:54 +01:00
2017-11-19 19:08:15 +01:00
2019-01-26 13:55:18 +01:00
2018-09-20 13:20:41 +02:00
2017-11-19 19:08:15 +01:00
2018-06-20 23:59:29 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-02-20 10:50:44 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2019-02-20 18:31:18 +01:00
2017-11-19 19:08:15 +01:00
2019-02-15 18:16:27 +01:00
2018-10-13 12:59:29 +02:00
2017-11-19 19:08:15 +01:00
2018-09-13 12:18:27 +02:00
2018-11-26 18:09:01 +01:00