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: #35415
Fixes: #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"