-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd: 252.5 -> 253 #216826
systemd: 252.5 -> 253 #216826
Conversation
still to do:
if anyone can help by commenting here, that would be nice |
9b54886
to
6853645
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We should probably still do some more testing before merging.
I tried switching my system to this nixpkgs commit, but aiohttp and samba failed to build. I'm not sure if it's fixed in staging since you opened that PR or not. I just merged in staging in a local branch and will kick off another build to try again. |
A live upgrade (or "switch" in nixos parlance) will need to trigger the udev rules, so lets block the merging of this PR before we investigate how Nixos does that. One of outcomes of the daemon-reexec is the change of boot.mount (for example) to use new style per-partition diskseq symlinks:
this will make subsequent mounting of the boot partition (or the ESP) to fail, because only the new udevd will create those symlinks. ps. |
I'm guessing this is where the systemd switch happens: |
cc @dasJ for input regarding the activation script logic. |
I don't really understand the issue and what needs to be done tbh |
so Now, worst case, this can potentially make /boot (or /efi) inaccessible, so updating the boot-loader will fail. The recommendation by systemd developers is to always do |
I'd personally go with an activation script snippet rather than touching https://switch-to-configuration.pl You can get the old systemd version from |
I think we might not have this issue given we set up explicit This only affects people who remove the However retriggering udev rules is probably still a good idea; albeit maybe not a blocker? |
Retriggering |
Hi! Just gonna drive by here with a quick snippet from CONTRIBUTING.md:
You've definitely nailed the second half, but if any more changes are required to this commit, could you add a link to the upstream changelog? Thank you! |
I'd personally prefer adding a note to the release notes, rather than the activation script. |
I meant the commit message (that's what the quoted section concerns), not the activation script. |
will do later today. I understood you the first time :D |
Ok, just to make it clear. Things left to do are:
|
Correct |
ps. |
We don't trigger builds for staging anyways, but whenever a new staging-next cycle happens. If there's no really bad regression that 253.1 will fix I'd rather see this merged in first. |
253.1 has been released, and we're about to start a new staging cycle. As agreed on Matrix I'll give 253.1 some testing and we'll merge this in. |
Rolling back, at least with these cherrypicked into master, I get failures in the Things like
and
I don't see these with 252, so this needs some further testing. |
yeah, the I've
… since I didn't know how to create a directory in the initrd. My VM boots now. |
systemd v253 changelog/NEWS: https://github.com/systemd/systemd/blob/v253/NEWS NixOS changes: 0007-hostnamed-localed-timedated-disable-methods-that-cha.patch was dropped, because systemd gained support to handle read-only /etc. *-add-rootprefix-to-lookup-dir-paths.patch required some updates too, as src/basic/def.h moved to src/basic/constants.h. systemd/systemd#25771 switched p11kit to become dlopen()'ed, so we need to patch that path. added a note to the 23.05 release notes to recommend `nixos-rebuild boot` Co-authored-by: Florian Klink <[email protected]>
Changelog: ``` 6c327d74aa hwdb: update to 11875a98e4f1c31e247d99e00c7774ea3653bafd 0b81fcd16d chase-symlinks: Always open a dirfd to the root directory aa20a210a0 chase-symlinks: chase_symlinks_at() AT_FDCWD fixes bb3e44323b escape: add missing non-NULL parameter assertions c4e7cf2bd7 test-escape: Add tests for escaping bogus UTF-8 sequences e906fd2421 escape: Ensure that output is always valid UTF-8 1a22006574 virt: correctly detect QEMU emulated pSeries guests 5ee19fdfa0 psi-util: fix error handling 9ffa0d439f journald: remove triplicate logging about failure to write log lines 4f7f93cc6a journald: downgrade various log messages from LOG_WARNING to LOG_INFO a2dc51cd8c journald: make sure shall_try_append_again() logs about all return codes passed in, not just some 144ac494ec systemctl: print better message if default target is masked 791754f683 Revert "dissect-image: don't probe swap partitions needlessly" d0e7841dce rules: remove redundant duplicate comparisons dc98d58dd8 man: add two missing commands to synopsys e093acd062 core/dbus-socket: check the socket path is absolute a719c2ec2f sd-event: fix error handling 58c821af60 sd-event: always initialize sd_event.perturb 2bfb07b22f systemctl: show "Until:" field only for service and scope units d9abd8babe tmpfiles.d: drop misleading comment 0f4dbe6367 Enable TPM by default with SetCredentialEncrypted 8d8240bdf6 stub: Fix unaligned read 44c2ff5b1e efi: drop executable-stack bit from .elf file f2460b78b9 logind-session: make stopping of idle session visible to admins 1947b9939c sleep: check if we're on AC power before checking battery capacity 452cad62c8 install: fail early if specifier expansion failed eae11e3f06 homectl: add missing break 9024afb994 core/manager: falling back to execute generators without sandboxing aac692160e man/tmpfiles.d: adjust the table in synopsis, improve spelling d2739b8c14 test: disable pipefail when testing interactive firstboot 755431b233 ukify: Set fast_load option when parsing PE files 343e90462f core: permit sending augmented enable/disable methods ba1cb4156b process-util: show requested process name in the log 5140da8937 systemctl: edit: fix double free of instanced name c4cdbb978f journalctl: fix output when --lines is used with --grep 6dafcad55c loop-util: fix error condition and return value ec6c1fbf7d Correct journal misspell 6b6df9a845 cryptsetup: check the existence of salt by salt_size > 0 cd5de2811a boot: Fix assertion failure 01b90e1588 pid1: generate compat warning for SystemCallArchitectures= if seccomp is off a3177cbe54 core/mount: fix default target for /sysusr/usr and its child 3168bda640 mkosi: configure multiarch libdir in debian/ubuntu builds 51b7acfcef tpm2: fix build failure without openssl a88e35bf95 resolved: Fall back to TCP if UDP is blocked ```
systemd now requires the /tmp mount point in the initrd cpio archive since systemd/systemd#25723 setting `"/tmp/.keep".text` will create the directory. this fixes a boot failure: ``` (sd-gens): Failed to overmount /tmp/: No such file or directory ```
`[email protected]` and `systemd-growfs-root.service` became real units since: systemd/systemd@50072cc we need to add them to the nixos module so growfs works again
@ElvishJerricco do you have any thoughts on this? |
I think the |
I might not have the bandwidth to fix the ukify issue soon, so I'd suggest we disable it temporary, merge this PR (if there are no other issues). Then we can tackle the ukify issue later. |
ps.
|
That sounds fine to me. |
disable it just temporarily, until a solution is found for the cross-compilation dependency on python see NixOS#216826 (comment) for more context
The eval error seems to be a timeout, because ofborg started building something. |
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)