From: skitching@apache.org
To: jkt@gentoo.org
To: linux-kernel@vger.kernel.org
Subject: Re: boot device order troubleshooting without an initrd
Date: Mon, 19 Apr 2010 22:20:23 +1200 [thread overview]
Message-ID: <1271672423.005324.28333.nullmailer@xnet.co.nz> (raw)
In-Reply-To: <20100418165125.1d2b2843@infradead.org>
As it happens, I've been looking into this issue recently.
[Warning: kernel newbie speaking!]
Without an initrd, the options for the root= kernel parameters are only those supported in init/do_mount.c:
1. root=MAJOR:MINOR
2. root=integer where integer is MAJOR<<n + minor
3 root=/dev/xxx
(well, apart fron "mtd" and "ubi" options).
Unfortunately, all of these options are sensitive to hardware changes, ie device enumeration order. So I
think that right now the answer to your question is: no, you can't get what you want without an initrd.
And I doubt that changes to the linux device-enumeration code "to be consistent with the BIOS" would be accepted.
Perhaps one thing that could be reasonably easily supported is:
root=gptguid
where gptguid is the id of a partition on a GPT-formatted disk. With msdos partition tables, partitions do not
have unique identifiers; Windows does puts a 32-bit "windows nt disk signature" field in the MBR, which could
possibly be used but it isn't really standard. However the GPT format (part of the EFI standard) mandates a
unique GUID be assigned to every partition which sounds like an excellent way to specify the location of the
root fs.
I *think* that it would be a matter of enhancing the "struct hd_struct" held by "struct gendisk" to store this
info when scanning a GPT partition table, then enhancing do_mount.c to check the root param against these values.
See: http://en.wikipedia.org/wiki/GUID_Partition_Table
Thoughts?
If this sounds sane to people, I would be keen to have a go at implementing this. Are there any specific
people or lists that should be cc'd when discussing this?
Regards, Simon
next prev parent reply other threads:[~2010-04-19 10:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 22:29 Jan Kundrát
2010-04-18 23:51 ` Arjan van de Ven
2010-04-19 8:43 ` Mike Waychison
2010-04-19 9:19 ` Jan Kundrát
2010-04-20 1:31 ` Robert Hancock
2010-04-19 10:20 ` skitching [this message]
2010-04-20 5:17 ` Pavel Machek
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=1271672423.005324.28333.nullmailer@xnet.co.nz \
--to=skitching@apache.org \
--cc=jkt@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
all inboxes | Powered by JetHome®