Re: [REGRESSION] linux 6.6.18 and later fails to boot with "initramfs unpacking failed: invalid magic at start of compressed archive"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



it's systemd-boot. attaching bootctl output. now looking at it, it seems that while systemd (and systemd-boot) gets timely updates on my system (currently at 255.4), the stub (is this how it's called?) does not get updated automatically in the efi partition (still at version 244?).

i can try to update it. but i'll wait for your instructions since this may be some rare situation and we may use it for testing.

anyway, i'm compiling new kernel with your suggested changes right now so i'll let you know how it turned out, soon.

r.

p.s.: ha! nevermind, i just checked the other systems which boot fine and they also are on stub (?) 244 so it's probably not the cause.


On 3/15/24 17:08, Ard Biesheuvel wrote:
On Fri, 15 Mar 2024 at 16:33, Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:

On Fri, 15 Mar 2024 at 15:12, Radek Podgorny <radek@xxxxxxxxxxx> wrote:

hi ard, thanks for the effort!

so, your first recommended patch (the memset thing), applied to current
mainline (6.8) DOES NOT resolve the issue.

the second recommendation, a revert patch, applied to the same mainline
tree, indeed DOES resolve the problem.

just to be sure, i'm attaching the revert patch.


Actually, that is not the patch I had in mind.

Please revert

x86/efi: Drop EFI stub .bss from .data section


BTW which bootloader are you using?
System:
      Firmware: UEFI 2.31 (American Megatrends 4.651)
 Firmware Arch: x64
   Secure Boot: disabled (unsupported)
  TPM2 Support: no
  Measured UKI: no
  Boot into FW: not supported

Current Boot Loader:
      Product: systemd-boot 244-1-arch
     Features: ✓ Boot counting
               ✓ Menu timeout control
               ✓ One-shot menu timeout control
               ✓ Default entry control
               ✓ One-shot entry control
               ✓ Support for XBOOTLDR partition
               ✓ Support for passing random seed to OS
               ✗ Load drop-in drivers
               ✗ Support Type #1 sort-key field
               ✗ Support @saved pseudo-entry
               ✗ Support Type #1 devicetree field
               ✗ Enroll SecureBoot keys
               ✗ Retain SHIM protocols
               ✗ Menu can be disabled
               ✓ Boot loader sets ESP information
          ESP: /dev/disk/by-partuuid/2adefc75-3da0-4c3d-9449-ea0114a4b281
         File: └─/EFI/systemd/systemd-bootx64.efi

Random Seed:
 System Token: set
       Exists: yes

Available Boot Loaders on ESP:
          ESP: /boot (/dev/disk/by-partuuid/2adefc75-3da0-4c3d-9449-ea0114a4b281)
         File: ├─/EFI/systemd/systemd-bootx64.efi (systemd-boot 244-1-arch)
               └─/EFI/BOOT/BOOTX64.EFI (systemd-boot 244-1-arch)

Boot Loaders Listed in EFI Variables:
        Title: Linux Boot Manager
           ID: 0x0009
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/2adefc75-3da0-4c3d-9449-ea0114a4b281
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0008
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/dacde831-60af-4f8c-bbb2-c4b03a3265e4
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0001
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/f9169784-d163-4c58-a95d-26deb4145714
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0004
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/ed77cf92-2acd-4e2b-be07-b6f1e4cded29
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/ca18d734-d8b3-48f8-b68e-3e4ae919e0c6
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0002
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/896b1d31-733e-417a-a740-a787acff3f15
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0003
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e7bf6fc5-0bf6-4dc2-8116-c2dbc8999a54
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Linux Boot Manager
           ID: 0x0006
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/6d9fa765-a4c9-4723-becf-61105a9d1f30
         File: └─/EFI/systemd/systemd-bootx64.efi

Boot Loader Entries:
        $BOOT: /boot (/dev/disk/by-partuuid/2adefc75-3da0-4c3d-9449-ea0114a4b281)
        token: arch

Default Boot Loader Entry:
         type: Boot Loader Specification Type #1 (.conf)
        title: Arch Linux
           id: arch.conf
       source: /boot//loader/entries/arch.conf
        linux: /boot//vmlinuz-linux
       initrd: /boot//intel-ucode.img
               /boot//initramfs-linux.img
      options: root=/dev/disk/by-label/MATLA_ROOT rw

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux