From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f178.google.com ([209.85.208.178]:45041 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729549AbeISAfI (ORCPT ); Tue, 18 Sep 2018 20:35:08 -0400 Received: by mail-lj1-f178.google.com with SMTP id q127-v6so2740527ljq.11 for ; Tue, 18 Sep 2018 12:01:10 -0700 (PDT) Subject: Re: GRUB writing to grubenv outside of kernel fs code To: Chris Murphy Cc: Btrfs BTRFS References: From: Andrei Borzenkov Message-ID: <1060aa5d-e004-f6c6-bbbd-77af4f2dc859@gmail.com> Date: Tue, 18 Sep 2018 22:01:06 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: 18.09.2018 21:57, Chris Murphy пишет: > On Tue, Sep 18, 2018 at 12:16 PM, Andrei Borzenkov wrote: >> 18.09.2018 08:37, Chris Murphy пишет: > >>> The patches aren't upstream yet? Will they be? >>> >> >> I do not know. Personally I think much easier is to make grub location >> independent of /boot, allowing grub be installed in separate partition. >> This automatically covers all other cases (like MD, LVM etc). > > The only case where I'm aware of this happens is Fedora on UEFI where > they write grubenv and grub.cfg on the FAT ESP. I'm pretty sure > upstream expects grubenv and grub.cfg at /boot/grub and I haven't ever > seen it elsewhere (except Fedora on UEFI). > > I'm not sure this is much easier. Yet another volume that would be > persistently mounted? Where? A nested mount at /boot/grub? I'm not > liking that at all. Even Windows and macOS have saner and simpler to > understand booting methods than this. > > That's exactly what Windows ended up with - separate boot volume with bootloader related files.