public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Using UUID for root disk in grub requires initramfs?
Date: Fri, 19 Jul 2019 12:59:09 -0400	[thread overview]
Message-ID: <CAJ0EP42Tke29rPDDJRKhv6ubU2nRXLFmCi8p26yODa9b5RDQ9Q@mail.gmail.com> (raw)
In-Reply-To: <20190719163716.l6lkpnwlrcxg3353@matica.foolinux.mooo.com>

On Fri, Jul 19, 2019 at 12:37 PM Ian Zimmerman <itz@very.loosely.org> wrote:
>
> On 2019-07-19 20:58, Adam Carter wrote:
>
> > I experimented found the following worked in /etc/default/grub;
> >
> > GRUB_DEVICE="PARTUUID=d3554d49-02"
> >
> > Which writes grub.cfg as;
> > linux /vmlinuz-5.2.0-gentoo root=PARTUUID=d3554d49-02 ro
> > init=/usr/lib/systemd/systemd iommu=pt raid=noautodetect
> >
> > PARTUUID looked up with blkid. No initramfs required :)
>
> I don't get this.  blkid is userspace.  The _kernel_ needs to know what
> the root fs device is, before it even starts pid 1.

The kernel init code is able to find a device given its PARTUUID.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/init/do_mounts.c?h=v4.19.59#n172


  reply	other threads:[~2019-07-19 16:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19  9:29 [gentoo-user] Using UUID for root disk in grub requires initramfs? Adam Carter
2019-07-19 10:27 ` Mick
2019-07-19 10:58   ` Adam Carter
2019-07-19 16:37     ` [gentoo-user] " Ian Zimmerman
2019-07-19 16:59       ` Mike Gilbert [this message]
2019-07-19 23:19       ` Adam Carter

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=CAJ0EP42Tke29rPDDJRKhv6ubU2nRXLFmCi8p26yODa9b5RDQ9Q@mail.gmail.com \
    --to=floppym@gentoo.org \
    --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