From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Vinay Venkataraghavan
<raghavanvinay-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Cc: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Building new initrd with dracut-network packages for iscsi boot.
Date: Thu, 02 Aug 2012 11:32:48 +0200 [thread overview]
Message-ID: <501A4940.7000302@redhat.com> (raw)
In-Reply-To: <1343837115.80604.YahooMailNeo-ZrCFWsyaVExRBbKmAC7my5OW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
Am 01.08.2012 18:05, schrieb Vinay Venkataraghavan:
> Hi all,
>
> I have a few questions regarding building a new initrd which adds additional modules to the existing initrd.
>
> The environment that I am working in is as follows:
>
> 1. that anaconda has completed the install and I prevent the system from rebooting.
>
> 2. Anaconda has installed the OS to an iscsi disk.
>
>
> What I'd like to do now is to add the dracut-network and iscsi modules to the initrd so that when the system reboots it will be able to connect to the remote iscsi target and mount the root device.
>
> I have been working through this for about three weeks now and am stuck at the phase where I can rebuild the initrd with the network modules and iscsi modules.
>
>
> The installed system contains all the dependency rpms such as: dracut, dracut-kernel, dracut-network, and iscsi-initiator-utils.
>
> While in the anaconda shell I tried the following command:
>
> dracut -v -a iscsi -m network new_initrd.img `uname -r`
>
> Executing this command has two problems:
>
> 1. The network option is invalid. I'm wondering if this should be -m dracut-network??
>
> 2. This does not add modules to the existing image. But it creates a very minimal initrd.
>
>
> What I would like is to add the network boot modules to boot from an iscsi root device to the existing initrd.
>
>
> I would appreciate any help in this matter. Please let me know if I can furnish any further information.
>
> Thanks in advance.
> - Vinay
"-m network" is wrong, because all the other modules are not used then. You will
end up only with "network" + "iscsi".
Why don't you just use:
# dracut new_initrd.img
or, if you find that too big, just omit the modules, you don't need.
# dracut --omit "nbd nfs multipath" new_initrd.img
prev parent reply other threads:[~2012-08-02 9:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 16:05 Building new initrd with dracut-network packages for iscsi boot Vinay Venkataraghavan
[not found] ` <1343837115.80604.YahooMailNeo-ZrCFWsyaVExRBbKmAC7my5OW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2012-08-02 9:32 ` Harald Hoyer [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=501A4940.7000302@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=raghavanvinay-/E1597aS9LQAvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.