Re: [PATCH] 40network: Copy the customize dhcp config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/24/14 at 09:19am, Harald Hoyer wrote:
> On 15.09.2014 03:59, minfei wrote:
> > 
> > On Sep 12, 2014, at 21:35, Vivek Goyal <vgoyal@xxxxxxxxxx> 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@xxxxxxxxxx>
> >>
> >> 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"

Thank you for your review.
We will test and correct it.

Minfei
Thanks

> 
> --
> To unsubscribe from this list: send the line "unsubscribe initramfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux