systemd: drop 001{4,5}-{catalog,hwdb}-don-t-update-on-install.patch

These patches removed logic in the meson install phase invoking
`journalctl --update-catalog` and `systemd-hwdb update`, which would
mutate the running system, and obviously fails in the sandbox.

Upstream also knows this is a bad thing if you're not on the machine you
want to deploy to, so there's logic in there to not execute it when
DESTDIR isn't empty. In our case, it is - as we set --prefix instead for
other reasons, but by just setting DESTIDIR to "/", we can still trigger
these things to be skipped.

The patches removed some context from
0018-Install-default-configuration-into-out-share-factory.patch, which
we need to introduce there to make that patch still apply.
This commit is contained in:
Florian Klink
2020-04-17 00:27:29 +02:00
parent 1ad4accdaf
commit a16ebf8561
4 changed files with 9 additions and 53 deletions
+5 -2
View File
@@ -55,8 +55,6 @@ in stdenv.mkDerivation {
./0011-Fix-hwdb-paths.patch
./0012-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch
./0013-localectl-use-etc-X11-xkb-for-list-x11.patch
./0014-catalog-don-t-update-on-install.patch
./0015-hwdb-don-t-run-update-on-install.patch
./0016-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch
./0017-Fix-mount-option-x-initrd.mount-handling-35268-16.patch
./0018-Install-default-configuration-into-out-share-factory.patch
@@ -220,6 +218,11 @@ in stdenv.mkDerivation {
doCheck = false; # fails a bunch of tests
# trigger the test -n "$DESTDIR" || mutate in upstreams build system
preInstall = ''
export DESTDIR=/
'';
postInstall = ''
# sysinit.target: Don't depend on
# systemd-tmpfiles-setup.service. This interferes with NixOps's