Skip to content

Systemd-boot fails to recognize keyboard input on some systems #143847

@anund

Description

@anund

Describe the bug

systemd-boot fails to correctly recognize keyboard input after version 248 on some systems. This is a known issue systemd/systemd#19191 with a known patch https://github.com/archlinux/svntogit-packages/blob/packages/systemd/trunk/0003-PARTIAL-REVERT-commit-tree-wide-replace-strverscmp-and-str_verscmp-with-strverscmp_improved.patch

Steps To Reproduce

Steps to reproduce the behavior:

  1. Fix nixos/systemd-boot: Fix installed version regexp #140046
  2. Update to unstable sometime post 6455697 (systemd v249 #131618)
  3. Rebuild
  4. Boot
  5. Only the default option will successfully boot as keyboard input does not work. (on some systems)

Expected behavior

systemd-boot accepts keyboard input

Additional context

Reading through the systemd issue it appears this is related to compiling with GCC 10. There is a suggestion it goes away with GCC 11 and there is a change on master at the end of the issue (different from the known patch) that also suggests it fixes the issue.

The associated arch systemd-stable patch will not apply as is.

#140046 Currently prevents systemd-boot updates from applying as bootctl --path=... --update is not being called. I think this prevents most users on unstable from seeing this issue.

Notify maintainers

@andlr @eelco @flokli @kloenk

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.66, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(<user>): `"home-manager"`
 - channels(root): `"nixos-21.11pre325810.2deb07f3ac4"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: systemd
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: systemdSoftware suite that provides an array of system components for Linux operating systems.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions