From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Andrei Borzenkov <arvidjaar@gmail.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: GRUB writing to grubenv outside of kernel fs code
Date: Tue, 18 Sep 2018 15:14:44 -0400 [thread overview]
Message-ID: <08cf5be2-9f6d-6430-7b49-0fcdbadd371b@gmail.com> (raw)
In-Reply-To: <CAJCQCtQJsYVNaWZAuMhBC6xc0VSkF-Lutz_2vzxTPb_RkfvA=Q@mail.gmail.com>
On 2018-09-18 15:00, Chris Murphy wrote:
> On Tue, Sep 18, 2018 at 12:25 PM, Austin S. Hemmelgarn
> <ahferroin7@gmail.com> wrote:
>
>> It actually is independent of /boot already. I've got it running just fine
>> on my laptop off of the EFI system partition (which is independent of my
>> /boot partition), and thus have no issues with handling of the grubenv file.
>> The problem is that all the big distros assume you want it in /boot, so they
>> have no option for putting it anywhere else.
>>
>> Actually installing it elsewhere is not hard though, you just pass
>> `--boot-directory=/wherever` to the `grub-install` script and turn off your
>> distributions automatic reinstall mechanism so it doesn't get screwed up by
>> the package manager when the GRUB package gets updated. You can also make
>> `/boot/grub` a symbolic link pointing to the real GRUB directory, so that
>> you don't have to pass any extra options to tools like grub-reboot or
>> grub-set-default.
>
> This is how Fedora builds their signed grubx64.efi to behave. But you
> cannot ever run grub-install on a Secure Boot enabled computer, or you
> now have to learn all about signing your own binaries. I don't even
> like doing that, let alone saner users.
>
> So for those distros that support Secure Boot, in practice you're
> stuck with the behavior of their prebuilt GRUB binary that goes on the
> ESP.
Agreed, but that avoids the issues we're talking about here completely
because the grubenv file ends up on the ESP too.
next prev parent reply other threads:[~2018-09-19 0:48 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 3:44 GRUB writing to grubenv outside of kernel fs code Chris Murphy
2018-09-18 4:21 ` Chris Murphy
2018-09-18 5:24 ` Andrei Borzenkov
2018-09-18 5:37 ` Chris Murphy
2018-09-18 18:16 ` Andrei Borzenkov
2018-09-18 18:25 ` Austin S. Hemmelgarn
2018-09-18 18:38 ` Andrei Borzenkov
2018-09-18 19:11 ` Austin S. Hemmelgarn
2018-09-19 5:10 ` Andrei Borzenkov
2018-09-18 19:00 ` Chris Murphy
2018-09-18 19:14 ` Austin S. Hemmelgarn [this message]
2018-09-18 18:57 ` Chris Murphy
2018-09-18 19:01 ` Andrei Borzenkov
2018-09-18 19:22 ` Chris Murphy
2018-09-18 19:13 ` Austin S. Hemmelgarn
2018-09-18 17:15 ` Goffredo Baroncelli
2018-09-18 18:52 ` Chris Murphy
2018-09-18 19:11 ` Goffredo Baroncelli
2018-09-18 19:34 ` Chris Murphy
2018-09-19 5:03 ` Duncan
2018-09-19 19:08 ` Goffredo Baroncelli
2018-09-19 19:34 ` Austin S. Hemmelgarn
2018-09-18 19:45 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08cf5be2-9f6d-6430-7b49-0fcdbadd371b@gmail.com \
--to=ahferroin7@gmail.com \
--cc=arvidjaar@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox