From: Eric Levy <contact@ericlevy.name>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: property designating root subvolumes
Date: Tue, 15 Nov 2022 13:45:23 -0500 [thread overview]
Message-ID: <N3KELR.FXYFWHCH7XYX2@ericlevy.name> (raw)
In-Reply-To: <ba47a0c3-ae7b-8aa9-96fd-2f1eab6e3885@libero.it>
On Tue, Nov 15 2022 at 07:23:21 PM +0100, Goffredo Baroncelli
<kreijack@libero.it> wrote:
> I don't know rEFInd very well, but I don't think that it is job of
> the bootloader to do the automatic OS discovery.
>
> If you want to perform an OS discovery, at first it would be enough
> to check the presence of "/bin/init" (or /init or ...) for linux and
> the equivalent for Windows and OS-X.
> But this will not give the information like:
> - os name
> - initrd
> - the linux boot parameter...
>
> Some (most) setup have different boot entries for the same filesystem
> (e.g. the standard one, and the emergency one).
>
> I prefer the other way that it is used in the linux world: it is
> responsibility of the os to inform the bootloader about its existence.
> Look at the BLS specification (even not so widespread adopted).
Yes, I respect the preference you have provided, but in a sense, merely
affirming the preference is begging the larger question.
The intention of rEFInd is as a bootloader, though less advanced
overall than Grub, that is more user friendly, supporting autodiscovery
of resident operating systems without needing to be preconfigured by
tools installed on one of those operating systems. rEFInd does support
some static configuration, similar to the Grub configuration system,
but it is not generally required, and supported primarily as an
afterthought, for advanced use cases not currently possible through the
main method of on-the-fly autodetection.
Grub is planned primarily with the assumption that a single operating
system, of some Linux variety, is the one dominantly used on a system,
and all others, whether also Linux or not, are in some sense
subordinate, installed only for occasional use. At times, such an
assumption may be agreeable, but not always.
I think there is a place in the discussion for preferences about the
design of the bootloader. However, I also think the discussion should
not reject the historical observation, that due to demand for the
feature, the default subvolume selector is being used, in a sense
incorrectly, for detecting a root file system, because no better
approach has been identified. Someone familiar with the nuances might
try to discuss with the developer whether the suggested logic for
detecting the root tree is a helpful approach, more so than using the
default selector. If, from the standpoint of the bootloader, the
approach of analyzing the file tree is more agreeable than using
features of the file system, then perhaps the current request is not
needed.
However, even so, I have concerns about desired handling of snapshots,
as well as about the other reasons that a subvolume may appear
internally as hosting a root tree, but not being desired for showing as
an item in the boot menu.
Regardless, I suggest that the status quo deserves some inspection.
next prev parent reply other threads:[~2022-11-15 18:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 23:23 property designating root subvolumes Eric Levy
2022-11-15 17:50 ` Andrei Borzenkov
2022-11-15 18:13 ` Eric Levy
2022-11-15 18:23 ` Goffredo Baroncelli
2022-11-15 18:45 ` Eric Levy [this message]
2022-11-16 19:09 ` Goffredo Baroncelli
2022-11-16 21:08 ` Eric Levy
2022-11-16 21:37 ` Graham Cobb
2022-11-16 23:00 ` Eric Levy
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=N3KELR.FXYFWHCH7XYX2@ericlevy.name \
--to=contact@ericlevy.name \
--cc=linux-btrfs@vger.kernel.org \
/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