public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Rename /dev/nvme0n1 to /dev/sda
Date: Mon, 4 Sep 2017 07:08:40 +0200	[thread overview]
Message-ID: <CADPrc8268cmfGG5wTCMSbDg=7=A6nK8mehVuRCEkEwtFcGHWTw@mail.gmail.com> (raw)
In-Reply-To: <C0057570-74C2-4FB9-8444-EFD5D904B947@antarean.org>

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

On Mon, Sep 4, 2017 at 6:26 AM, J. Roeleveld <joost@antarean.org> wrote:
> On 3 September 2017 20:11:51 GMT+02:00, "Canek Peláez Valdés" <
caneko@gmail.com> wrote:
[ ... ]
> >The label by itself works at boot since it's just another kernel
> >parameter;
> >for example in my latop (that uses NVME, by the way) uses the following
> >in
> >the kernel command line: "root=LABEL=Dell".
>
> Since when does the kernel support labels? Last time I checked, you need
an initramfs to make that work.

You are absolutely right; the kernel only supports "PARTUUID="
out-of-the-box (/usr/src/linux/init/do_mounts.c:218), the "LABEL=" ids are
implemented by the initramfs, dracut in my case
(/usr/lib/dracut/modules.d/98dracut-systemd/rootfs-generator.sh:87).

The "LABEL=" id  gets translated to the corresponding /dev/disks/by-label
link, so those are the ones that should be used all the time.

Thanks for the clarification.

Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México

[-- Attachment #2: Type: text/html, Size: 1433 bytes --]

  reply	other threads:[~2017-09-04  5:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01 16:10 [gentoo-user] Rename /dev/nvme0n1 to /dev/sda Grant
2017-09-02  2:58 ` R0b0t1
2017-09-02  6:48 ` Andrew Savchenko
2017-09-02 13:14 ` Canek Peláez Valdés
2017-09-03 17:59   ` Grant
2017-09-03 18:11     ` Canek Peláez Valdés
2017-09-04  4:26       ` J. Roeleveld
2017-09-04  5:08         ` Canek Peláez Valdés [this message]
2017-09-02 14:35 ` Mike Gilbert
2017-09-03 18:11   ` Grant
2017-09-03 22:24     ` Mike Gilbert
2017-09-03 22:41       ` Grant
2017-09-04  1:26         ` Mike Gilbert
2017-09-04  1:38           ` Rich Freeman
2017-09-04 14:58             ` Grant
2017-09-04 15:00           ` Grant
2017-09-04 15:33             ` J. Roeleveld
2017-09-04 15:40             ` Mike Gilbert
2017-09-04 19:22               ` Grant

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='CADPrc8268cmfGG5wTCMSbDg=7=A6nK8mehVuRCEkEwtFcGHWTw@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.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