Skip to content

systemd v249#131618

Merged
flokli merged 5 commits intoNixOS:stagingfrom
andir:systemdv249
Sep 13, 2021
Merged

systemd v249#131618
flokli merged 5 commits intoNixOS:stagingfrom
andir:systemdv249

Conversation

@andir
Copy link
Member

@andir andir commented Jul 26, 2021

Motivation for this change

This updates to the latest version of systemd. I'll target staging with this as soon as testing confirms that it is good. I don't want to deal with the typical staging issues just now while working on this.

Things done
  • switched my local NixOS to this PR
  • write a changelog entry

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. 8.has: module (update) This PR changes an existing module in `nixos/` labels Jul 26, 2021
@happysalada
Copy link
Contributor

The error looks like it's coming from here

  procps = if stdenv.isLinux
    then callPackage ../os-specific/linux/procps-ng { }
    else unixtools.procps;

on non linux systems you can't call procps with the override.

I wonder why the ci is trying to build this for non-linux environments.

@andir andir mentioned this pull request Aug 2, 2021
12 tasks
@andir
Copy link
Member Author

andir commented Aug 6, 2021

Just to document the current status: Bootup of graphical targets works but without graphical.target being the default multi-user.target is never reached. I'll have to spawn a VM with proper serial configuration outside of our NixOS test runners to debug this properly. Hopefully this weekend will be sufficient to find a solution to the actual issue.

@andir
Copy link
Member Author

andir commented Aug 18, 2021

Ok, so with 4912e82 we are able to build the small NixOS test set. Next step is to cleanup the history a bit and propose that patch (in a cleanup fashion) to upstream for at least commenting on it.

@andir andir force-pushed the systemdv249 branch 2 times, most recently from 97bd3ab to 539238a Compare August 18, 2021 23:33
@andir andir marked this pull request as ready for review August 19, 2021 22:43
@ofborg ofborg bot requested review from delroth, edolstra, flokli and kloenk August 19, 2021 23:21
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Aug 19, 2021
Copy link
Contributor

@delroth delroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the small nit I noted, LGTM for the tpm2-tss changes. Have not reviewed the rest.

@berbiche
Copy link
Member

#134919
Would it be possible to add the option above to the networkd link section definition?

Sorry if this comment is noise, feel free to hide it.

@andir
Copy link
Member Author

andir commented Aug 20, 2021

@ofborg eval

@andir
Copy link
Member Author

andir commented Aug 20, 2021

#134919
Would it be possible to add the option above to the networkd link section definition?

Sorry if this comment is noise, feel free to hide it.

I would rather not make the scope of this any bigger. We can have a look at that PR separate from this.

@ofborg ofborg bot requested a review from delroth August 20, 2021 08:13
@andir
Copy link
Member Author

andir commented Aug 22, 2021

It appears like we have a couple of failures with the newer systemd version:

https://hydra.nixos.org/eval/1698173?filter=tests.systemd-&compare=1697597&full=

$ strace -e openat -- journalctl --grep foo
...
openat(AT_FDCWD, "/nix/store/g53fspaj03xks0zrknm4vbng04rcl5b1-acl-2.3.1/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/pnw32sjmxaa2xjslync7gv3lyfppyd7x-kmod-27/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/wkbsmc5knp24k7y9cxhxpbcgg35bn4dg-libcap-2.49-lib/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/6dgsawl7pacs0am4cjnwb0v8c13j2k3i-libgcrypt-1.9.3/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/7f4kkyb17fi2rphs1q2053885v809zp6-util-linux-2.36.2/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/i2hdyv1slrsgyygys8zjb4q0ydq2ycr2-linux-pam-1.5.1/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/79lh7p2jjwqimzwksnpaclc3zj42zqda-openssl-1.1.1k/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/m6b9770145k2djc0pvqb6rvrfz037d4g-lz4-1.9.3/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/3yikygrl534kvcdn8nrdywwjzzq5rj3q-xz-5.2.5/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/zxhhzd7x9iv9vd409h1mrr1acpc12k85-libseccomp-2.5.1-lib/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/5n2n8n23578d0rkmn53k194yvhi3znd0-iptables-1.8.7/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/lib/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

There are a few more test failures that either look unrelated or are just some weird corner cases: https://hydra.nixos.org/eval/1698173?filter=&compare=1697597&full=1

@happysalada
Copy link
Contributor

There seems to be the following

                                          dhcpcd[877]: Failed to reload-or-try-restart ntpd.service: Unit ntpd.service not found.
machine # [   14.331703] dhcpcd[877]: Failed to reload-or-try-restart openntpd.service: Unit openntpd.service not found.
machine # [   14.341690] dhcpcd[877]: Failed to reload-or-try-restart chronyd.service: Unit chronyd.service not found.

perhaps not important at all.

In the confinement logs there is also the
systemd[906]: Failed to create directory at /var/empty/usr: Operation not permitted
(which seems to be the cause of the failure, or at least it's the last message that comes before the failure)

Feel free to ignore those if you think they can be skipped.

@andir andir changed the base branch from staging-next to staging September 12, 2021 21:46
@andir
Copy link
Member Author

andir commented Sep 12, 2021

This should definitely target staging. I know that staging cycles are slow but restarting the current one will just slow it down overall.

It was never about restarting the staging cycle. As I expressed in the staging matrix channel the intention was to have a staging cycle where this doesn't get bundled up with tons of stdenv, glibc, binutils, bash, ... changes that just make it painful to figure out why things a breaking.

I've rebased this onto staging now. I didn't test if this still works as I'm tired of rebuilding everything for days. Feel free to merge whenever you feel like it.

@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. and removed 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. labels Sep 12, 2021
@ofborg ofborg bot requested review from kloenk and removed request for WilliButz, jonringer, kloenk and zowoq September 12, 2021 22:43
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. labels Sep 12, 2021
@flokli flokli merged commit 8019c95 into NixOS:staging Sep 13, 2021
@vcunat
Copy link
Member

vcunat commented Sep 13, 2021

The separate systemd-only cycle might still happen, due to darwin overload and builtins.fetchurl not getting fixed timely on the farm, but perhaps the conditions will change or a better idea will come.

@andir andir mentioned this pull request Sep 14, 2021
12 tasks
@akshatagarwl akshatagarwl mentioned this pull request Sep 17, 2021
12 tasks
@Izorkin
Copy link
Contributor

Izorkin commented Sep 28, 2021

Found warning on systemlog:

/nix/store/69fq5zlibddvbx46km0xcn0y3li1bnqf-systemd-249.4/lib/udev/rules.d/50-udev-default.rules:42 Unknown group 'sgx', ignoring

cat /nix/store/69fq5zlibddvbx46km0xcn0y3li1bnqf-systemd-249.4/lib/udev/rules.d/50-udev-default.rules

...
SUBSYSTEM=="misc", KERNEL=="sgx_enclave", GROUP="sgx", MODE="0660"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. 8.has: changelog This PR adds or changes release notes 8.has: clean-up This PR removes packages or removes other cruft 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.