From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Intend of hostonly-cmdline?
Date: Wed, 07 May 2014 13:32:39 +0200 [thread overview]
Message-ID: <536A19D7.2010405@redhat.com> (raw)
In-Reply-To: <2263850.UM9clb02rz@skinner>
On 07.05.2014 13:12, Thomas Renninger wrote:
> Hi,
>
> I wonder for what this one is exactly for?
>
> commit ab9457efd78ff74c654b4123956cdbd131935066
> Author: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Date: Tue Feb 25 12:35:32 2014 +0100
>
> Add flag to toggle hostonly cmdline storing in the initramfs
>
> --hostonly-cmdline:
> Store kernel command line arguments needed in the initramfs
>
> --no-hostonly-cmdline:
> Do not store kernel command line arguments needed in the initramfs
>
>
>
> Wouldn't it be enough to simply add hostonly command line parameters
> only in hostonly case like:
> + if [[ $hostonly == "yes" ]]; then
> + cmdline >> "${initdir}/etc/cmdline.d/90mdraid.conf"
> + echo >> "${initdir}/etc/cmdline.d/90mdraid.conf"
> + fi
>
> why is a hostonly-cmdline extra parameter needed?
>
> Thanks,
>
> Thomas
>
hostonly stores config files like mdadm.conf and only installs those kernel
modules, which are specific to the machine.
hostonly-cmdline also stores dracut specific kernel cmdline parameters to boot
the system in the initramfs, so that basically you could boot the system by
only specifying "root=" on the kernel cmdline.
The advantage of hostonly-cmdline is that the kernel cmdline does not need
complex rd.md.uuid=... or rd.luks.uuid=... parameters.
The disadvantage is that in case of uuid or disk changes, you cannot alter the
parameters which are in the initramfs.
I suggest to use the output of:
# dracut --print-cmdline
and add it to the kernel command line.
hostonly-cmdline should only be used, when e.g. the maximum char limit of the
kernel command line would be reached or when the user has a generic rescue
image, to be used when the disk layout changed and the user has not generated a
new initramfs with it.
Maybe we could let hostonly-cmdline be the default and add a parameter
"rd.cmdline.conf=0", which turns of parsing $initrd/etc/cmdline.d/*.conf.
Thoughts?
next prev parent reply other threads:[~2014-05-07 11:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 11:12 Intend of hostonly-cmdline? Thomas Renninger
2014-05-07 11:32 ` Harald Hoyer [this message]
[not found] ` <536A19D7.2010405-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-05-07 11:47 ` Alexander Tsoy
[not found] ` <20140507154733.386369cd-d/9N6kaejYfpx9ONITL1FA@public.gmane.org>
2014-05-07 12:08 ` Harald Hoyer
[not found] ` <536A2222.50606-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-05-07 12:10 ` Harald Hoyer
[not found] ` <536A22C9.8000007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-05-07 13:15 ` Alexander Tsoy
[not found] ` <20140507171527.2d826560-d/9N6kaejYfpx9ONITL1FA@public.gmane.org>
2014-05-08 13:54 ` Alexander Tsoy
[not found] ` <20140508175412.2386aa29-d/9N6kaejYfpx9ONITL1FA@public.gmane.org>
2014-05-13 19:26 ` Alexander Tsoy
2014-05-07 13:40 ` Thomas Renninger
2014-05-07 13:48 ` Harald Hoyer
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=536A19D7.2010405@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=trenn-l3A5Bk7waGM@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox