mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: minfei <mhuang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] 40network: Copy the customize dhcp config
Date: Fri, 24 Oct 2014 09:19:45 +0200	[thread overview]
Message-ID: <5449FD91.6070700@redhat.com> (raw)
In-Reply-To: <A76B1C96-974B-4A3D-BAE5-CBD231FB35DC-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 15.09.2014 03:59, minfei wrote:
> 
> On Sep 12, 2014, at 21:35, Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> 
>> On Fri, Sep 12, 2014 at 01:27:51PM +0800, Minfei Huang wrote:
>>> It is not available to valid the following customize dhcp config
>>> /etc/dhclient.conf in the initram environment.
>>>
>>> supersede domain-name "machine.test.group";
>>> supersede domain-name-servers 10.125.97.171, 10.126.98.43, 10.125.97.176;
>>>
>>> The dracut doesnot acquire the customize dhcp config from
>>> /etc/dhclient.conf file when construct the initram image.
>>>
>>> Copy the customize config to make the config availably in the
>>> initram environment by dhcp.
>>>
>>> Signed-off-by: Minfei Huang <mhuang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>>
>> Can you give more information about the problem here. Why only look
>> for "supercede" options only. What about rest of the options in
>> dhclient.conf?
>>
>> Thanks
>> Vivek
> 
> Maybe the supercede is the frequently options which is customised.  But I think
> I should not ignore the customised dhcp configuration /etc/dhclient.conf instead of
> using the default dhcp configuration in dracut source directory.
> 
> Of course it will be fine to append all of the configuration customised dhclient.conf
> to the default configuration by constructing the initram image. 


Hmmm, maybe simply do this?

-    inst_simple "$moddir/dhclient.conf" "/etc/dhclient.conf"
+    inst_simple -H -o "/etc/dhclient.conf"
+    cat "$moddir/dhclient.conf" >> "${initdir}/etc/dhclient.conf"

  parent reply	other threads:[~2014-10-24  7:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12  5:27 [PATCH] 40network: Copy the customize dhcp config Minfei Huang
     [not found] ` <1410499671-31253-1-git-send-email-mhuang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-09-12 13:35   ` Vivek Goyal
     [not found]     ` <20140912133530.GB32421-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-09-15  1:59       ` minfei
     [not found]         ` <A76B1C96-974B-4A3D-BAE5-CBD231FB35DC-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-10-24  7:19           ` Harald Hoyer [this message]
     [not found]             ` <5449FD91.6070700-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-10-24  8:25               ` minfei

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=5449FD91.6070700@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mhuang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=vgoyal-H+wXaHxf7aLQT0dZR+AlfA@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