Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] efibootmgr "Could not prepare Boot variable: Read-only file system"
Date: Tue, 15 Aug 2017 18:05:19
Message-Id: 1637848.0mkB8s2SG6@dell_xps
1 After some years of trouble free UEFI use on a PC with a Kaveri APU, I've
2 suddenly come across a problem of incorrectly mounted efivarfs. I realised
3 something was amiss when I tried to set up a new kernel I had just copied into
4 /boot/EFI/BOOT/
5
6 # tree /boot
7 /boot
8 ├── 42GHz2400MHz.CMO
9 └── EFI
10 └── BOOT
11 ├── A88XM-PLUS-ASUS-3004.CAP
12 ├── System.map-4.12.5-gentoo
13 ├── System.map-4.9.34-gentoo
14 ├── bootx64-4.12.5-gentoo.efi
15 ├── bootx64-4.9.34-gentoo.efi <==This one
16 ├── config-4.12.5-gentoo
17 └── config-4.9.34-gentoo
18
19 2 directories, 8 files
20
21 The error is generated whenever I try to create a new boot entry:
22
23 # efibootmgr --create --disk /dev/sda --part 1 --label "gentoo-4.12.5-15_Aug"
24 --loader "\EFI\BOOT\bootx64-4.12.5-gentoo.efi"
25 Could not prepare Boot variable: Read-only file system
26
27 Hmm ... looking more closely it seems /sys/firmware/efi/efivars was mounted as
28 'ro':
29
30 # mount | grep efi
31 efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,relatime)
32
33
34 I can't recall if I did this myself in a moment of security induced
35 inspiration. I doubt I did. So how did this happen? What is responsible for
36 mounting this fs?
37
38 Should I remount it as 'rw' so I can set up the new kernel in the EFI stub, or
39 does this problem need further investigation?
40
41 --
42 Regards,
43 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies