Skip to content

systemd-boot: Boot entries in reverse order #28912

@hunger

Description

@hunger

systemd version the issue has been seen with

254

Used distribution

Arch Linux

Linux kernel version used

6.4.11-arch2-1

CPU architectures issue was seen on

x86_64

Component

systemd-boot

Expected behaviour you didn't see

I have several UKI-kernels installed in /efi/EFI/Linux. There is no configuration file whatsoever in /efi.

This is the output of bootctl list:

         type: Boot Loader Specification Type #2 (.efi)
        title: Cleanroom (20230815.1356) (default)
           id: arch_20230815.1356.efi
       source: /efi//EFI/Linux/arch_20230815.1356.efi
     sort-key: 20230815.1356
      version: 20230815.1356
        linux: /efi//EFI/Linux/arch_20230815.1356.efi
      options: i915.fastboot=1 intel_iommu=igfx_off mem_sleep_default=deep rd.luks.uuid=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa rd.luks.opt>

         type: Boot Loader Specification Type #2 (.efi)
        title: Cleanroom (20230821.1859) (selected)
           id: arch_20230821.1859.efi
       source: /efi//EFI/Linux/arch_20230821.1859.efi
     sort-key: 20230821.1859
      version: 20230821.1859
        linux: /efi//EFI/Linux/arch_20230821.1859.efi
      options: i915.fastboot=1 intel_iommu=igfx_off mem_sleep_default=deep rd.luks.uuid=bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb rd.luks.opt>

         type: Automatic
        title: Reboot Into Firmware Interface
           id: auto-reboot-to-firmware-setup
       source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f

I expect the latest kernel (20230821.1859) to boot.

Unexpected behaviour you saw

The oldest kernel boots (20230815.1356).

Steps to reproduce the problem

Install several UKI-kernels, check boot order in bootctl.

Additional program output to the terminal or log subsystem illustrating the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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