Updated to the latest version of the nixos-v237 branch, which fixes two
things:
* Make sure that systemd looks in /etc for configuration files.
https://github.com/NixOS/systemd/pull/15
* Fix handling of the x-initrd.mount option.
https://github.com/NixOS/systemd/pull/16
I've added NixOS VM tests for both to ensure we won't run into
regressions. The newly added systemd test only tests for that and is by
no means exhaustive, but it's a start.
Personally I only wanted to fix the former issue, because that's the one
I've been debugging. After sending in a pull request for our systemd
fork (https://github.com/NixOS/systemd/pull/17) I got a notice from
@Mic92, that he already fixed this and his fix was even better as it's
even suitable for upstream (so we hopefully can drop that patch
someday).
The reason why the second one came in was simply because it has been
merged before the former, but I thought it would be a good idea to have
tests for that as well.
In addition I've removed the sysconfdir=$out/etc entry to make sure the
default (/etc) is used. Installing is still done to $out, because those
directories that were previously into sysconfdir now get into
factoryconfdir.
Quote from commit NixOS/systemd@98067cc806:
By default systemd should read all its configuration from /etc.
Therefore we rely on -Dsysconfdir=/etc in meson as default value.
Unfortunately this would also lead to installation of systemd's own
configuration files to `/etc` whereas we are limited to /nix/store. To
counter that this commit introduces two new configuration variables
`factoryconfdir` and `factorypkgconfdir` to install systemd's own
configuration into nix store again, while having executables looking
up files in /etc.
Tested this change against all of the NixOS VM tests we have in
nixos/release.nix. Between this change and its parent no new tests were
failing (although a lot of them were flaky).
Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Mic92, @tk-ecotelecom, @edolstra, @fpletz
Fixes: #35415Fixes: #35268
The indenting is a bit weird to follow, especially at the end of the
file (right brace without indent, but the opening brace is indented by
two spaces).
No functional change and I've verified this by building it with this
change and without and both lead to the same store paths.
Signed-off-by: aszlig <aszlig@nix.build>
Cc: @fpletz, @edolstra
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16/bin/mount.crypt --help` got 0 exit code
- ran `/nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16/bin/mount.crypt --help` and found version 2.16
- ran `/nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16/bin/pmt-ehd --help` got 0 exit code
- ran `/nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16/bin/pmt-ehd --help` and found version 2.16
- ran `/nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16/bin/pmvarrun -h` got 0 exit code
- found 2.16 with grep in /nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16
- found 2.16 in filename of file in /nix/store/ylk3vdmg5vk7c21fxg54yvrclvj5cpx1-pam_mount-2.16
cc "@tstrobel"
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12/bin/pagemon -h` got 0 exit code
- ran `/nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12/bin/pagemon -h` and found version 0.01.12
- found 0.01.12 with grep in /nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12
- found 0.01.12 in filename of file in /nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/sar --help` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/sar -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/sar --help` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/sadf -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/iostat -h` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/iostat help` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/iostat -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/tapestat -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/mpstat -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/pidstat -h` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/pidstat -V` and found version 11.7.2
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/cifsiostat -h` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/cifsiostat help` got 0 exit code
- ran `/nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2/bin/cifsiostat -V` and found version 11.7.2
- found 11.7.2 with grep in /nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2
- found 11.7.2 in filename of file in /nix/store/m8nm4ifgh3j31wnlz6ixn737d29sv3dx-sysstat-11.7.2
cc "@eelco"
Avoids the following warning:
File /.../systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft -h` got 0 exit code
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft --help` got 0 exit code
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft -v` and found version 0.8.2
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft --version` and found version 0.8.2
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft -h` and found version 0.8.2
- ran `/nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2/bin/nft --help` and found version 0.8.2
- found 0.8.2 with grep in /nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2
- found 0.8.2 in filename of file in /nix/store/ahcr1zyg4sp38rwch6vvvziwm9afj2ja-nftables-0.8.2
cc "@wkennington"
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/17fxzl242z1bjng82m4aqlbsjhdnxjb0-mcelog-154/bin/mcelog --help` got 0 exit code
- ran `/nix/store/17fxzl242z1bjng82m4aqlbsjhdnxjb0-mcelog-154/bin/mcelog --version` and found version 154
- ran `/nix/store/17fxzl242z1bjng82m4aqlbsjhdnxjb0-mcelog-154/bin/mcelog --help` and found version 154
- found 154 with grep in /nix/store/17fxzl242z1bjng82m4aqlbsjhdnxjb0-mcelog-154
- found 154 in filename of file in /nix/store/17fxzl242z1bjng82m4aqlbsjhdnxjb0-mcelog-154
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -h` got 0 exit code
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --help` got 0 exit code
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -V` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --version` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -h` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --help` and found version 2.0.2
- found 2.0.2 in filename of file in /nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2
cc "@cstrahan"
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset -h` got 0 exit code
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset --help` got 0 exit code
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset help` got 0 exit code
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset -V` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset -v` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset --version` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset version` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset -h` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset --help` and found version 6.35
- ran `/nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35/bin/ipset help` and found version 6.35
- found 6.35 with grep in /nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35
- found 6.35 in filename of file in /nix/store/paz6j5dhl2i8wd8r1hvf2i9w594fl52x-ipset-6.35
cc "@wkennington"
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/w1kd60p20ps8v5pjicl3z9s6y4fmkgy0-iio-sensor-proxy-2.4/bin/iio-sensor-proxy -h` got 0 exit code
- ran `/nix/store/w1kd60p20ps8v5pjicl3z9s6y4fmkgy0-iio-sensor-proxy-2.4/bin/iio-sensor-proxy --help` got 0 exit code
- ran `/nix/store/w1kd60p20ps8v5pjicl3z9s6y4fmkgy0-iio-sensor-proxy-2.4/bin/iio-sensor-proxy help` got 0 exit code
- found 2.4 with grep in /nix/store/w1kd60p20ps8v5pjicl3z9s6y4fmkgy0-iio-sensor-proxy-2.4
- found 2.4 in filename of file in /nix/store/w1kd60p20ps8v5pjicl3z9s6y4fmkgy0-iio-sensor-proxy-2.4
cc "@peterhoeg"
Semi-automatic update. These checks were performed:
- built on NixOS
- found 0.309 with grep in /nix/store/jid52565zlg8jhgqarln207dcj5g9njn-hwdata-0.309
- found 0.309 in filename of file in /nix/store/jid52565zlg8jhgqarln207dcj5g9njn-hwdata-0.309
Semi-automatic update. These checks were performed:
- built on NixOS
- found 0.3.3 with grep in /nix/store/88qd4dw0rxmxgqprqc0dg8jp7w3zcmzk-hal-flash-0.3.3
- found 0.3.3 in filename of file in /nix/store/88qd4dw0rxmxgqprqc0dg8jp7w3zcmzk-hal-flash-0.3.3
cc "@malyn"
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/2zp45hxwi8mnlsaf2hwfdbd0hkzrfcvz-eventstat-0.04.03/bin/eventstat -h` got 0 exit code
- ran `/nix/store/2zp45hxwi8mnlsaf2hwfdbd0hkzrfcvz-eventstat-0.04.03/bin/eventstat -h` and found version 0.04.03
- found 0.04.03 with grep in /nix/store/2zp45hxwi8mnlsaf2hwfdbd0hkzrfcvz-eventstat-0.04.03
- found 0.04.03 in filename of file in /nix/store/2zp45hxwi8mnlsaf2hwfdbd0hkzrfcvz-eventstat-0.04.03
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm -h` got 0 exit code
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm --help` got 0 exit code
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm -V` and found version 2.5.2
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm -v` and found version 2.5.2
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm --version` and found version 2.5.2
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm -h` and found version 2.5.2
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_discover_rm --help` and found version 2.5.2
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_rm_loclaunch -h` got 0 exit code
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_rm_loclaunch --help` got 0 exit code
- ran `/nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2/bin/dmtcp_rm_loclaunch help` got 0 exit code
- found 2.5.2 with grep in /nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2
- found 2.5.2 in filename of file in /nix/store/dpqcx4vr2nzam3c504xg5qc0rmmf1c4k-dmtcp-2.5.2
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/x64h5av7wnk88kjcs1rk3cv5lv1rqhcv-cachefilesd-0.10.10/bin/cachefilesd -v` and found version 0.10.10
- ran `/nix/store/x64h5av7wnk88kjcs1rk3cv5lv1rqhcv-cachefilesd-0.10.10/bin/cachefilesd --version` and found version 0.10.10
- found 0.10.10 with grep in /nix/store/x64h5av7wnk88kjcs1rk3cv5lv1rqhcv-cachefilesd-0.10.10
- found 0.10.10 in filename of file in /nix/store/x64h5av7wnk88kjcs1rk3cv5lv1rqhcv-cachefilesd-0.10.10
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blkparse -V` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blkparse --version` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blktrace -V` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blktrace -v` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blktrace --version` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blkiomon -V` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/blkiomon --version` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btrace help` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt -h` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt --help` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt -V` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt --version` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt -h` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btt --help` and found version 1.2.0
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btrecord -h` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btrecord --help` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btreplay -h` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/btreplay --help` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/bno_plot.py -h` got 0 exit code
- ran `/nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0/bin/bno_plot.py --help` got 0 exit code
- found 1.2.0 with grep in /nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0
- found 1.2.0 in filename of file in /nix/store/11v1yxf5d2xiw62d99bbbsv5qhwyjair-blktrace-1.2.0