Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Bootloaders: SILENT CRISIS!!!
Date: Sun, 29 Jan 2017 19:44:58
Message-Id: CAOdo=SxerYEwGQyjsmS9JgwT-rv0iOYkMYLqFXdE_2L0t3d_Vw@mail.gmail.com
In Reply to: Re: [gentoo-user] Bootloaders: SILENT CRISIS!!! by Mick
1 On Sat, Jan 28, 2017 at 2:31 PM, Mick <michaelkintzios@×××××.com> wrote:
2 >
3 > rEFInd is definitely a slick and useful boot manager for multibooting.
4 > On this occasion I did not install it, but decided to remain
5 > minimalist, because I do not want to interfere much with the AppleMac
6 > installation.
7 >
8 > So, I created /boot/EFI/LINUX/ on /dev/sda1, leaving the original
9 > /boot/EFI/APPLE as was and copied in the LINUX/ directory just the
10 > gentoo kernel image, .config and System files. I named the kernel
11 > image 'bootx64-4.4.39-gentoo.efi' to differentiate from other images I
12 > will install over time.
13 >
14 > Then using the efibootmgr I set up bootx64-4.4.39-gentoo.efi as the
15 > default boot kernel and when the MackBook is started it boots straight
16 > into Gentoo, in what it feels like milliseconds. :-)
17 >
18 > When I need to boot into MacOS I have to press the alt key (aka Option
19 > ⌥ key) as I power it on and the Apple firmware boot loader takes over.
20 > What I don't know yet is if a MacOS upgrade will wipe the
21 > /boot/EFI/LINUX/ in /dev/sda1 as it upgrades the APPLE files, but it
22 > is easy to boot with a LiveUSB and copy over the Linux kernel once
23 > more.
24
25 Apple doesn't boot from the ESP [1] so it most likely won't touch
26 "/boot/EFI/LINUX/".
27
28 For example, on my MacBook, the ESP only has what looks like hardware updaters.
29
30
31 # diskutil list disk0
32 /dev/disk0 (internal):
33 #: TYPE NAME SIZE IDENTIFIER
34 0: GUID_partition_scheme 500.3 GB disk0
35 1: EFI EFI 314.6 MB disk0s1
36 2: Apple_CoreStorage Macintosh HD 499.3 GB disk0s2
37 3: Apple_Boot Recovery HD 650.0 MB disk0s3
38
39
40 # diskutil mount readOnly -mountpoint ESP disk0s1
41 Volume EFI on disk0s1 mounted
42
43
44 # ls -R ESP/EFI
45 APPLE
46
47 ESP/EFI/APPLE:
48 EXTENSIONS FIRMWARE UPDATERS
49
50 ESP/EFI/APPLE/EXTENSIONS:
51 Firmware.scap
52
53 ESP/EFI/APPLE/FIRMWARE:
54 MB91_0154_B09_LOCKED.fd
55
56 ESP/EFI/APPLE/UPDATERS:
57 MULTIUPDATER USBCH USBCVA
58
59 ESP/EFI/APPLE/UPDATERS/MULTIUPDATER:
60 HPMUtil.efi Mac-9AE82516C7C6B903.epm MultiUpdater.efi flasher_base.smc
61 Mac-9AE82516C7C6B903-B0_3.72.bin Mac-9AE82516C7C6B903.smc
62 SmcFlasher.efi flasher_update.smc
63
64 ESP/EFI/APPLE/UPDATERS/USBCH:
65 HPMUtil_v39.efi J93-USBC-NVM-2.72.0-P_B0-S.bin
66
67 ESP/EFI/APPLE/UPDATERS/USBCVA:
68 HPMUtil.efi fw-p1-USBCVideoAdapter-S.bin
69 #
70
71
72 [1] Apple's EFI firmware can read hfsplus and it boots (IIRC since OS
73 X 10.10) from a kernel on the Apple_Boot partition (disk0s3).

Replies

Subject Author
Re: [gentoo-user] Bootloaders: SILENT CRISIS!!! Mick <michaelkintzios@×××××.com>