public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Adam Carter <adamcarter3@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Using UUID for root disk in grub requires initramfs?
Date: Sat, 20 Jul 2019 09:19:54 +1000	[thread overview]
Message-ID: <CAC=wYCHVBfv6mHjAP2mAu40mY-WNDjkqLK7PPMjf9qcTLKoMPg@mail.gmail.com> (raw)
In-Reply-To: <20190719163716.l6lkpnwlrcxg3353@matica.foolinux.mooo.com>

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

On Sat, Jul 20, 2019 at 2:37 AM 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.
>

Sorry I was misleading by not using chronological order. The steps are;
1. Use blkid to look up the PARTUUID of the root partition
2. Add this to /etc/default/grub as GRUB_DEVICE="PARTUUID=d3554d49-02"
3. run grub-mkconfig
4. Reboot

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

      parent reply	other threads:[~2019-07-19 23:20 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
2019-07-19 23:19       ` Adam Carter [this message]

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='CAC=wYCHVBfv6mHjAP2mAu40mY-WNDjkqLK7PPMjf9qcTLKoMPg@mail.gmail.com' \
    --to=adamcarter3@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