linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacob Avraham <jacob@compass-eos.com>
To: "linux-embedded@vger.kernel.org" <linux-embedded@vger.kernel.org>
Subject: determine boot device in initrd
Date: Thu, 20 Jan 2011 11:57:59 +0200	[thread overview]
Message-ID: <A4B10BB8CE8F86468ABF12A5E4A5CC9920F919A3C4@mail> (raw)

Hi,

I have a system with several USB disks, each of them is boot-capable.
Each such device has a kernel and initrd in its filesystem.
I want to be able to determine in initrd from which USB device it (and the kernel) were
loaded from, so I can mount the root filesystem from that device.
Is that doable?
I don't want to use a static "root=" entry in grub, since I don't know which sd device it will be.

Thanks,

Jacob Avraham

             reply	other threads:[~2011-01-20  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20  9:57 Jacob Avraham [this message]
2011-01-22  2:48 ` determine boot device in initrd Rob Landley

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=A4B10BB8CE8F86468ABF12A5E4A5CC9920F919A3C4@mail \
    --to=jacob@compass-eos.com \
    --cc=linux-embedded@vger.kernel.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).