From: Ian Zimmerman <itz@very.loosely.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Using UUID for root disk in grub requires initramfs?
Date: Fri, 19 Jul 2019 09:37:16 -0700 [thread overview]
Message-ID: <20190719163716.l6lkpnwlrcxg3353@matica.foolinux.mooo.com> (raw)
In-Reply-To: <CAC=wYCG3DC7y+2XXprL9tzdZFkfO0ABa_qAVL07STwwqmyFeAQ@mail.gmail.com>
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.
With initramfs, this egg/chicken problem is hidden: the initramfs itself
is the initial root fs, and during the pivot to the real root fs
userspace programs [1] are already available.
[1]
Well, usually just 1 of them: busybox.
--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.
next prev parent reply other threads:[~2019-07-19 16:37 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 ` Ian Zimmerman [this message]
2019-07-19 16:59 ` [gentoo-user] " Mike Gilbert
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=20190719163716.l6lkpnwlrcxg3353@matica.foolinux.mooo.com \
--to=itz@very.loosely.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