Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bootloaders: SILENT CRISIS!!!
Date: Sun, 29 Jan 2017 23:26:59
Message-Id: 1774993.NtKq4gqYhD@dell_xps
In Reply to: Re: [gentoo-user] Bootloaders: SILENT CRISIS!!! by Tom H
1 On Sunday 29 Jan 2017 14:44:45 Tom H wrote:
2 > On Sat, Jan 28, 2017 at 2:31 PM, Mick <michaelkintzios@×××××.com> wrote:
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
29 > updaters.
30
31 Yes, this is where firmware updates install images for the hardware and these
32 are flashed/loaded when the MacOS boots.
33
34
35 > # diskutil list disk0
36 > /dev/disk0 (internal):
37 > #: TYPE NAME SIZE
38 > IDENTIFIER 0: GUID_partition_scheme 500.3 GB
39 > disk0 1: EFI EFI 314.6 MB
40 > disk0s1 2: Apple_CoreStorage Macintosh HD 499.3 GB
41 > disk0s2 3: Apple_Boot Recovery HD 650.0 MB
42 > disk0s3
43 >
44 >
45 > # diskutil mount readOnly -mountpoint ESP disk0s1
46 > Volume EFI on disk0s1 mounted
47 >
48 >
49 > # ls -R ESP/EFI
50 > APPLE
51 >
52 > ESP/EFI/APPLE:
53 > EXTENSIONS FIRMWARE UPDATERS
54 >
55 > ESP/EFI/APPLE/EXTENSIONS:
56 > Firmware.scap
57 >
58 > ESP/EFI/APPLE/FIRMWARE:
59 > MB91_0154_B09_LOCKED.fd
60 >
61 > ESP/EFI/APPLE/UPDATERS:
62 > MULTIUPDATER USBCH USBCVA
63 >
64 > ESP/EFI/APPLE/UPDATERS/MULTIUPDATER:
65 > HPMUtil.efi Mac-9AE82516C7C6B903.epm MultiUpdater.efi flasher_base.smc
66 > Mac-9AE82516C7C6B903-B0_3.72.bin Mac-9AE82516C7C6B903.smc
67 > SmcFlasher.efi flasher_update.smc
68 >
69 > ESP/EFI/APPLE/UPDATERS/USBCH:
70 > HPMUtil_v39.efi J93-USBC-NVM-2.72.0-P_B0-S.bin
71 >
72 > ESP/EFI/APPLE/UPDATERS/USBCVA:
73 > HPMUtil.efi fw-p1-USBCVideoAdapter-S.bin
74 > #
75 >
76 >
77 > [1] Apple's EFI firmware can read hfsplus and it boots (IIRC since OS
78 > X 10.10) from a kernel on the Apple_Boot partition (disk0s3).
79
80 Yes, Apple's firmare reads the blessed hfs+ partition and fishes out its
81 bootx64.efi file kernel image, but I thought this was from the second partition
82 where the OS is installed. I'll have a look tomorrow when I boot it up.
83 --
84 Regards,
85 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Bootloaders: SILENT CRISIS!!! Tom H <tomh0665@×××××.com>