Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #76717 > unrolled thread

Bug#1022900: grub-install, efibootmgr etc. not working with new kernel

Started byStephan Verbücheln <verbuecheln@posteo.de>
First post2022-10-27 16:10 +0200
Last post2022-11-13 10:10 +0100
Articles 14 — 5 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-10-27 16:10 +0200
    Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Diederik de Haas <didi.debian@cknow.org> - 2022-10-27 17:00 +0200
      Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <erlenmayr@gmail.com> - 2022-10-28 20:20 +0200
        Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-10-28 23:20 +0200
    Processed: Re: Bug#1022900: grub-install, efibootmgr etc. not  working with new kernel "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-10-28 23:40 +0200
    Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-10-29 00:30 +0200
      Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-10-29 22:50 +0200
        Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-10-30 16:00 +0100
          Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-11-02 17:30 +0100
            Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-11-09 08:50 +0100
              Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Stephan Verbücheln <verbuecheln@posteo.de> - 2022-11-11 08:00 +0100
                Bug#1022900: grub-install, efibootmgr etc. not working with new kernel Salvatore Bonaccorso <carnil@debian.org> - 2022-11-11 09:40 +0100
    Bug#1022900: marked as done (grub-install, efibootmgr etc. not  working with new kernel) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-11-11 12:10 +0100
    Bug#1022900: fixed in linux 6.0.8-1 Stephan Verbücheln <verbuecheln@posteo.de> - 2022-11-13 10:10 +0100

#76717 — Bug#1022900: grub-install, efibootmgr etc. not working with new kernel

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-10-27 16:10 +0200
SubjectBug#1022900: grub-install, efibootmgr etc. not working with new kernel
Message-ID<FlbK1-h5WT-9@gated-at.bofh.it>
Package: src:linux
Version: 6.0.3-1

When I boot with kernel 6.0.x, grub-install, efibootmgr etc. keep
failing. With kernel 5.19.x it works on the same machine with the same
userland.

Hardware: MacBookPro11,1, Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz



I am not sure if this app is Apple specific. I recommend developers to
test grub-install and efibootmgr on other hardware setups.



grub-install: info: copying `/usr/lib/shim/shimx64.efi.signed' ->
`/boot/efi/EFI/debian/shimx64.efi'.
grub-install: info: copying `/usr/lib/grub/x86_64-efi-
signed/grubx64.efi.signed' -> `/boot/efi/EFI/debian/grubx64.efi'.
grub-install: info: copying `/usr/lib/shim/mmx64.efi.signed' ->
`/boot/efi/EFI/debian/mmx64.efi'.
grub-install: info: copying `/usr/lib/shim/fbx64.efi.signed' ->
`/boot/efi/EFI/debian/fbx64.efi'.
grub-install: info: copying `/usr/lib/shim/BOOTX64.CSV' ->
`/boot/efi/EFI/debian/BOOTX64.CSV'.
grub-install: info: copying `/boot/grub/x86_64-efi/load.cfg' ->
`/boot/efi/EFI/debian/grub.cfg'.
grub-install: info: Registering with EFI: distributor = `debian', path
= `\EFI\debian\shimx64.efi', ESP at hostdisk//dev/sda,gpt1.
grub-install: info: executing modprobe efivars 2>/dev/null.
grub-install: info: setting EFI variable Boot0000.
grub-install: warning: Cannot set EFI variable Boot0000.
grub-install: warning: efivarfs_set_variable: writing to fd 6 failed:
Invalid argument.
grub-install: warning: _efi_set_variable_mode: ops->set_variable()
failed: Invalid argument.
grub-install: error: failed to register the EFI boot entry: Invalid
argument.




Regards

[toc] | [next] | [standalone]


#76718

FromDiederik de Haas <didi.debian@cknow.org>
Date2022-10-27 17:00 +0200
Message-ID<Flcwp-h6cv-9@gated-at.bofh.it>
In reply to#76717

[Multipart message — attachments visible in raw view] — view raw

On Thursday, 27 October 2022 15:56:28 CEST Stephan Verbücheln wrote:
> Version: 6.0.3-1
> 
> When I boot with kernel 6.0.x, grub-install, efibootmgr etc. keep
> failing. With kernel 5.19.x it works on the same machine with the same
> userland.

Can you try whether applying the following patch fixes that issue?

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?
h=linux-6.0.y&id=c2a000ad03bb3a0d0f389adcfc9f8c61622da363

That is part of upstream's v6.0.4 tag/release.

[toc] | [prev] | [next] | [standalone]


#76751

FromStephan Verbücheln <erlenmayr@gmail.com>
Date2022-10-28 20:20 +0200
Message-ID<FlC7v-hm5S-3@gated-at.bofh.it>
In reply to#76718
I have installed the package “linux-source”, applied the patch,
compiled and booted it. The patch alone does not appear to fix the
issue. (“efibootmgr -o” still not working.)

Maybe I find time to try vanilla kernel 6.0.5 on the weekend.

Regards
Stephan

[toc] | [prev] | [next] | [standalone]


#76770

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-10-28 23:20 +0200
Message-ID<FlEVH-hnLo-1@gated-at.bofh.it>
In reply to#76751
I have now compiled and booted vanilla kernel 6.0.5. “efibootmgr -o” is
not working.

I double-checked that with kernel 5.19.11 (Debian), it is working fine.

Regards

[toc] | [prev] | [next] | [standalone]


#76771 — Processed: Re: Bug#1022900: grub-install, efibootmgr etc. not working with new kernel

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-10-28 23:40 +0200
SubjectProcessed: Re: Bug#1022900: grub-install, efibootmgr etc. not working with new kernel
Message-ID<FlFf4-hnRB-5@gated-at.bofh.it>
In reply to#76717
Processing control commands:

> found -1 6.0.5-1
Bug #1022900 [src:linux] grub-install, efibootmgr etc. not working with new kernel
Marked as found in versions linux/6.0.5-1.

-- 
1022900: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022900
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#76775

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-10-29 00:30 +0200
Message-ID<FlG1s-homB-3@gated-at.bofh.it>
In reply to#76717
Some more information:

linux-image-5.19.0-2-amd64/now 5.19.11-1 (not affected)
linux-image-6.0.0-1-amd64/now 6.0.2-1+b1 (affected)
linux-image-6.0.0-2-amd64/unstable,now 6.0.3-1 (affected)
linux-image-6.0.5/now 6.0.5-1 (custom vanilla kernel build, affected)

Other relevant package versions (no recent changes):

efibootmgr/unstable,now 17-1
efivar/unstable,now 37-6
libefivar1/unstable,now 37-6

grub-common/unstable,now 2.06-4
grub-efi-amd64/unstable,now 2.06-4
grub-efi-amd64-bin/unstable,now 2.06-4
grub-efi-amd64-signed/unstable,now 1+2.06+4
grub2-common/unstable,now 2.06-4

Feel free to ask for more information, logs or additional tests.

Regards

[toc] | [prev] | [next] | [standalone]


#76823

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-10-29 22:50 +0200
Message-ID<Fm0Wd-cj-1@gated-at.bofh.it>
In reply to#76775
For completeness: The problem persists with the new kernel in Sid.

> 6.0.0-2-amd64 / Debian 6.0.5-1 (2022-10-28) x86_64 GNU/Linux

[toc] | [prev] | [next] | [standalone]


#76846

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-10-30 16:00 +0100
Message-ID<FmhX3-b07-5@gated-at.bofh.it>
In reply to#76823
Sice the latest vanilla kernel does not work, I have filed an upstream
bug.

https://bugzilla.kernel.org/show_bug.cgi?id=216640

Regards

[toc] | [prev] | [next] | [standalone]


#76895

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-11-02 17:30 +0100
Message-ID<FnoMN-Vgy-3@gated-at.bofh.it>
In reply to#76846
Some updates.

linux-image-6.0.0-2-amd64 6.0.6-2 does not fix the bug.

In the upstream bug, a new set of new patches were mentioned which
should address this issue. I expect them to be merged into version
6.0.7.

New patches regarding EFI:
https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/log/?h=urgent

I will not apply any patches manually but just wait for the coming
releases instead. Anyone who has this issue right now can boot into
kernel 5.19 as a workaround.

Regards

[toc] | [prev] | [next] | [standalone]


#76975

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-11-09 08:50 +0100
Message-ID<FpO0p-2t10-5@gated-at.bofh.it>
In reply to#76895
Update for completeness:

The EFI patches have not made it into 6.0.7. As expected, 6.0.7 from
Debian still has the problem.

New EFI patches have been merged into master on November 4. I hope to
find them in 6.0.8 or 6.1. Then I will test again.

Regards

[toc] | [prev] | [next] | [standalone]


#77008

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-11-11 08:00 +0100
Message-ID<Fqwb7-2VXG-3@gated-at.bofh.it>
In reply to#76975
Yesterday, kernel 6.0.8 was released with a number of EFI fixes. I have
compiled the vanilla kernel and I am happy to confirm that it solves
the issue.

Regards

[toc] | [prev] | [next] | [standalone]


#77010

FromSalvatore Bonaccorso <carnil@debian.org>
Date2022-11-11 09:40 +0100
Message-ID<FqxJT-2WXV-15@gated-at.bofh.it>
In reply to#77008
Hi Stephan,

On Fri, Nov 11, 2022 at 06:53:46AM +0000, Stephan Verbücheln wrote:
> Yesterday, kernel 6.0.8 was released with a number of EFI fixes. I have
> compiled the vanilla kernel and I am happy to confirm that it solves
> the issue.

Thanks for confirming, 6.0.8-1 will be uploaded soon.

Regards,
Salvatore

[toc] | [prev] | [next] | [standalone]


#77017 — Bug#1022900: marked as done (grub-install, efibootmgr etc. not working with new kernel)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-11-11 12:10 +0100
SubjectBug#1022900: marked as done (grub-install, efibootmgr etc. not working with new kernel)
Message-ID<FqA53-2YtG-17@gated-at.bofh.it>
In reply to#76717

[Multipart message — attachments visible in raw view] — view raw

Your message dated Fri, 11 Nov 2022 11:00:10 +0000
with message-id <E1otRla-00AkOU-7d@fasolo.debian.org>
and subject line Bug#1022900: fixed in linux 6.0.8-1
has caused the Debian Bug report #1022900,
regarding grub-install, efibootmgr etc. not working with new kernel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1022900: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022900
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#77072 — Bug#1022900: fixed in linux 6.0.8-1

FromStephan Verbücheln <verbuecheln@posteo.de>
Date2022-11-13 10:10 +0100
SubjectBug#1022900: fixed in linux 6.0.8-1
Message-ID<Frha1-3p4z-1@gated-at.bofh.it>
In reply to#76717
I am happy to confirm that with Linux kernel 6.0.8-1 in Debian Sid, the
issue is fixed.

Regards

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web