All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerhard Wiesinger <lists-tcxHB8FAk+J54TAoqtyWWQ@public.gmane.org>
To: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] write-ifcfg.sh: Don't overwrite network config in root filesystem
Date: Wed, 25 Jun 2014 13:07:26 +0200	[thread overview]
Message-ID: <53AAAD6E.9010207@wiesinger.com> (raw)
In-Reply-To: <53AA9B8E.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 25.06.2014 11:51, Harald Hoyer wrote:
> On 21.06.2014 12:40, Gerhard Wiesinger wrote:
>> This patch adds the possibility to keep the original
>> network configuration specified in the root filesystem.
>> This is necessary in situations with dual stack IPv4 and
>> IPv6 configurations or different kind on nameservers
>> (e.g. public ones at boot time, running a dns server
>> on localhost later on).
>>
>> Keeping original configuration can be activated by:
>> networkstatic=yes
>> on the kernel boot command line.
>>
>>
>> I don't understand this. It only copies to /run/initramfs. If you want to keep
>> your original network configuration, just don't copy over the files from
>> /run/initramfs to your root filesystem.

Hello Harald,

The topic is: /etc/sysconfig/network-scripts/ifcfg-eth0 is overwritten 
by dracut when network config is specified on boot command line (e.g. 
grub config). As normal config is different and more complex (e.g. IPv6 
setup) boot config is different.

I found, that this patch doesn't overwrite the network config in 
/etc/sysconfig/network-scripts/ifcfg-eth0 when you specify network 
config on the boot command line.

I didn't debug into details and I'm not familiar with dracut in detail 
so I can't say why it works but it works. I think that some other code 
parts copy the initramfs afterwards to /etc/sysconfig/....

But maybe you can clarify it.

Ciao,
Gerhard

  parent reply	other threads:[~2014-06-25 11:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-21 10:40 [PATCH] write-ifcfg.sh: Don't overwrite network config in root filesystem Gerhard Wiesinger
     [not found] ` <alpine.LFD.2.02.1406211239250.1876-GinJ0NHkz1PSbTvUbH3RCA@public.gmane.org>
2014-06-25  9:51   ` Harald Hoyer
     [not found]     ` <53AA9B8E.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-06-25 11:07       ` Gerhard Wiesinger [this message]
     [not found]         ` <53AAAD6E.9010207-tcxHB8FAk+J54TAoqtyWWQ@public.gmane.org>
2014-06-25 12:45           ` 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=53AAAD6E.9010207@wiesinger.com \
    --to=lists-tcxhb8fak+j54taoqtywwq@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@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.