From: Xen <list@xenhideout.nl>
To: grub-devel@gnu.org
Subject: Re: A black window pop out after I select a boot entry in grub2
Date: Wed, 10 Aug 2016 20:29:55 +0200 [thread overview]
Message-ID: <14fd7c6a82244c5f851896072c47db66@dds.nl> (raw)
In-Reply-To: <0b4dde86a81cda9262c62c6e178ea520@dds.nl>
Xen schreef op 10-08-2016 19:57:
> There is no interface where partitions are subdirectories of disks?
> There is no /dev/disk/sda/1/
Once you had a consistent interface to reference such "names" it would
become easier to make the jump to a user-friendly operating system in
terms of any pre-boot environment, is all I am saying.
disk:<tab> to see all the disk drives would be very easy to teach
people.
disk:a:1 as a reference to the first partition on the first disk?
It wouldn't be a directory, it would be a device node.
At the same time it could allow the initrd root filesystem and the
target root filesystem to be referenced by different names.
Just an idea, I don't say it would be elegant right from the start.
But it would be a user-centric way of approaching things. These days
people use "root symlinks" (e.g. ln -s /sys/kernel/debug /debug) for
these things. That's not a proper use of the root directory. It should
be tidy, not littered with symlinks and other stuff you can't find a
place for. I think the current wax in the expansion of the root
filesystem (root directory) entries is alarming.
/sys was recently added, /srv, /snap, /run, and your particular brand
may have more. On a 64-bit system you have at least three /lib versions.
It is getting out of hand.
It is not something you can really navigate in a GUI.
MacOS solves it by not going there anyway. You can do the same. For a
proper GUI proper display of those "labels" would be most convenient I
think.
In the pre-boot rescue environment you could consider mounting disks and
partitions under consistent and predictable locations as well as being
accessed by e.g. "target:/" or ":target/".
The current location could then be "rescue:/" as the actual path that
you are at.
"mount disk:a:1 target:" could then be even nomenclature for mounting
that partition under that name. The real mount point would then be
/mounts/target or /mnt/target. disk:a:1 would just point to
/dev/disk/a/1 or something of the kind.
What you get is a prefix in path names that will hopefully alleviate
some confusion even as it could add more if not properly done.
Honestly I still think those drive letters were best although there is
no way to enumerate them.
But adding labels and namespaced labels is a possibility. Coupled with a
structured way of mounting things you could at least use them as
shortcuts for getting there.
Regards.
next prev parent reply other threads:[~2016-08-10 18:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 21:29 A black window pop out after I select a boot entry in grub2 Huangwei Fang
2016-08-10 14:17 ` Andrei Borzenkov
2016-08-10 14:25 ` Vladimir 'phcoder' Serbinenko
[not found] ` <CAA0a8nUfkQNiP8fEhmivB3M5kNL3z9EqKn6mqiUTVb=5pw1=9g@mail.gmail.com>
2016-08-23 0:48 ` Fwd: " Huangwei Fang
2016-08-10 17:57 ` Xen
2016-08-10 18:02 ` Vladimir 'phcoder' Serbinenko
2016-08-10 18:33 ` Xen
2016-08-10 18:29 ` Xen [this message]
[not found] ` <CAA0a8nUuWTYzkgrjNX-4Ai+VbVbBYb=at41B0Eq9LUxdMm7ZJg@mail.gmail.com>
2016-08-23 0:44 ` Fwd: " Huangwei Fang
2016-08-25 7:54 ` Andrei Borzenkov
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=14fd7c6a82244c5f851896072c47db66@dds.nl \
--to=list@xenhideout.nl \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.