Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI data corruption? [SOLVED, mostly]
Date: Wed, 18 Sep 2019 08:43:19
Message-Id: 5858002.Q9tSjRSPWN@peak
In Reply to: Re: [gentoo-user] UEFI data corruption? by Peter Humphrey
1 On Tuesday, 17 September 2019 07:23:10 BST Peter Humphrey wrote:
2
3 Well, it seems to be working now - mostly.
4
5 The fix was to write a new gpt label, create all the partitions and build a
6 new system: no use of earlier packages. User data came from backups.
7
8 Meanwhile, I used bootctl and efibootmgr to create and delete boot entries in
9 the efi data until I finished up with this arrangement:
10
11 # bootctl
12 systemd-boot not installed in ESP. <---- Note 1
13 System:
14 Firmware: UEFI 2.31 (American Megatrends 5.09)
15 Secure Boot: disabled
16 Setup Mode: user
17
18 Current Boot Loader:
19 Product: systemd-boot 243
20 Features: ✓ Boot counting
21 ✓ Menu timeout control
22 ✓ One-shot menu timeout control
23 ✓ Default entry control
24 ✓ One-shot entry control
25 ✓ Support for XBOOTLDR partition
26 ✓ Support for passing random seed to OS
27 ESP: /dev/disk/by-partuuid/95b0a3f6-eae2-445c-b098-3c8174588948
28 File: └─/EFI/BOOT/BOOTX64.EFI
29
30 Random Seed:
31 Passed to OS: no
32 System Token: not set
33 Exists: yes
34
35 Available Boot Loaders on ESP:
36 ESP: /boot (/dev/disk/by-partuuid/95b0a3f6-eae2-445c-
37 b098-3c8174588948)
38 File: └─/EFI/BOOT/bootX64.efi (systemd-boot 243)
39
40 Boot Loaders Listed in EFI Variables:
41 Title: EFI Stub <---- Note 2
42 ID: 0x0000
43 Status: active, boot-order
44 Partition: /dev/disk/by-partuuid/95b0a3f6-eae2-445c-b098-3c8174588948
45 File: └─/EFI/BOOT/BOOTX64.EFI
46
47 Boot Loader Entries:
48 $BOOT: /boot (/dev/disk/by-partuuid/95b0a3f6-eae2-445c-
49 b098-3c8174588948)
50
51 Default Boot Loader Entry:
52 title: Gentoo Linux 4.19.72 <---- Note 3
53 id: 30-gentoo-4.19.72
54 source: /boot/loader/entries/30-gentoo-4.19.72.conf
55 linux: /vmlinuz-4.19.72-gentoo
56 options: root=/dev/nvme0n1p4 initrd=/intel-uc.img net.ifnames=0
57
58 Note 1: I still can't 'bootctl install' without causing the damage I've
59 described already. The system does boot though.
60
61 Note 2: I've tried to change this with 'efibootmgr -b 00 -L "Gentoo Linux"',
62 to no avail. It does nothing I can see.
63
64 Note 3: This title comes from the file named two lines later; it has nothing
65 to do with the Title of Note 2.
66
67 Furthermore, when the default entry starts, I see 'SHA256 verified' in the
68 upper left corner of the EFI BIOS display area, until the kernel takes the
69 terminal over.
70
71 Oh, and I deleted the unused directory (by me) /boot/EFI/systemd.
72
73 So: solved, mostly. I still don't know what has changed though.
74
75 --
76 Regards,
77 Peter.

Replies

Subject Author
Re: [gentoo-user] UEFI data corruption? [SOLVED, mostly] Mick <michaelkintzios@×××××.com>