Skip to content

systemd: revert boot-breaking systemd-boot change#355290

Merged
ElvishJerricco merged 1 commit intoNixOS:stagingfrom
alyssais:systemd-boot-revert
Nov 11, 2024
Merged

systemd: revert boot-breaking systemd-boot change#355290
ElvishJerricco merged 1 commit intoNixOS:stagingfrom
alyssais:systemd-boot-revert

Conversation

@alyssais
Copy link
Member

Fixes boot for me.

Closes: #355284

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@alyssais alyssais mentioned this pull request Nov 11, 2024
13 tasks
@github-actions github-actions bot added the 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. label Nov 11, 2024
@nix-owners nix-owners bot requested review from aanderse, arianvp and flokli November 11, 2024 22:23
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

SGTM since this is trading a QEMU VM boot bug for something that breaks boot on a bunch of real and popular hardware, and the patch appears to be fundamentally incorrect. But I’ll let @ElvishJerricco look at this too.

./0015-tpm2_context_init-fix-driver-name-checking.patch
./0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch
./0017-meson.build-do-not-create-systemdstatedir.patch
./0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch
Copy link
Member

Choose a reason for hiding this comment

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

Should this only apply for aarch64? Or is it possible for x86 and other architectures EFI support could be affected?

Copy link
Member

Choose a reason for hiding this comment

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

An AMD Opteron that could theoretically be affected by this was mentioned in the upstream issue, though AFAICT nobody has reported whether it actually is in practice or not. Also conditional patches are just evil and we should avoid platform divergence wherever possible.

Copy link
Contributor

@ElvishJerricco ElvishJerricco left a comment

Choose a reason for hiding this comment

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

LGTM. There was a conflict in the revert, so I double checked that you've resolved it correctly just in case. I've also built systemdMinimal with this and it builds ok. Thanks!

@ElvishJerricco ElvishJerricco merged commit 125e994 into NixOS:staging Nov 11, 2024
@github-actions
Copy link
Contributor

Backport failed for staging-24.11: couldn't find remote ref staging-24.11.
Please ensure that this Github repo has a branch named staging-24.11.

@github-actions
Copy link
Contributor

Successfully created backport PR for staging-24.11:

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

Labels

6.topic: systemd Software suite that provides an array of system components for Linux operating systems.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants