tomazzi wrote:Head_on_a_Stick wrote:I already use btrfs:
Nope, As You said (in previous posts), You've copied the kernel image to the EFI partition?? - or am I missing something?
Are you confused?
The EFI system partition *must* be FAT-formatted.
UEFI firmware cannot read any other filesystem.
My ESP is FAT32 but my root partition is btrfs.
a) fsck the EFI partition
b) compare copies of files in the EFI partition with originals, f.e. using 'cmp' command (bit by bit)
What would this accomplish? Anyway, systemd has already
fsck'd the ESP
The Debian kernel images that I have copied to the ESP boot just fine with Secure Boot disabled so clearly there is no corruption.
In fact, I have just installed the RC kernel from experimental and my kernel post-install script copied the fresh images over automatically.
This new kernel image boots just fine so I will now try a reboot in Secure mode with this NVRAM configuration:
Code: Select all
root@sid:~# efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0001,0000,0006,0007,0005
Boot0000* Debian sid HD(1,GPT,876168c2-2afb-4f50-ba94-cc7732d47b98,0x800,0x100000)/File(\sid\vmlinuz)r.o.o.t.=./.d.e.v./.s.d.a.3. .r.o.o.t.f.l.a.g.s.=.s.u.b.v.o.l.=.s.i.d. .r.w. .q.u.i.e.t. .z.s.w.a.p...e.n.a.b.l.e.d.=.1. .e.l.e.v.a.t.o.r.=.n.o.o.p. .i.n.i.t.r.d.=./.s.i.d./.i.n.i.t.r.d...i.m.g.
Boot0001* rEFInd Boot Manager HD(1,GPT,876168c2-2afb-4f50-ba94-cc7732d47b98,0x800,0x100000)/File(\EFI\refind\refind_x64.efi)
Boot0005* UEFI OS VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0006* UEFI OS HD(1,GPT,876168c2-2afb-4f50-ba94-cc7732d47b98,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0007* ubuntu HD(1,GPT,876168c2-2afb-4f50-ba94-cc7732d47b98,0x800,0x100000)/File(\EFI\Ubuntu\grubx64.efi)
Back in a mo'...
EDIT: No, the RC kernel from experimental doesn't work with EFI_STUB booting and Secure Boot enabled either.