Fix readNetInfo and writeEnabledNetInfo for s390 (#595388)
Before f17d989bc2cb50ffaedcf97a332095180511a272, writeEnabledNetInfo
did not seem to be called on s390. Now that it is, it turned out that
readNetInfo and writeEnabledNetInfo are not complete.
Loader does not need to handle or understand layer2 and portno so
consolidate that into opaque options. This will prevent issues such as
ef100b6baa5324fb5f5060b21f804bddc16ebead or
9caaca40bcaffb502dc58659e828f97d78a2d0f8
and is also transparent to future extensions in linuxrc.
Really ignore parm/conf file options that are deprecated,
otherwise fixed loader would leave them in the ifcfg file.
Tell which stacks to configure in /etc/sysconfig/network
GATEWAY in ifcfg is really IPv4 only.
Please fixed loader to parse DNS and write DNS1,DNS2,... itself (again).
Correctly parse OPTIONS whose value includes equal signs because
the values are attribute value pairs. See also bug 597205 and
8549a36d4b22171992951a272b82f0aa14234dc4.
Do parse DOMAIN for DNS search suffixes which are very hand on s390
where it's sometimes hard to write more than 80 chars for
repo/stage2/updates etc. Also write out quoted since it is a whitespace
separated list.
Don't write HWADDR on s390. See also 3411cda88be7ec7fe57ec5c9c73d15148354a414
and 2c1aab43a1010ec0e113fa86e4daea9cd99de7f6 (bug 546005) or bug 591533.
---
isys/iface.c | 3 +--
isys/iface.h | 3 +--
loader/linuxrc.s390 | 17 ++++++++++++++++-
loader/loader.c | 15 ++++++++-------
loader/loader.h | 2 +-
loader/net.c | 45 +++++++++++++--------------------------------
6 files changed, 40 insertions(+), 45 deletions(-)
/* flags */
uint64_t flags;
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index b421062..3716979 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -1992,6 +1992,7 @@ function do_network() {
echo $"The NETWORK parameter isn't used anymore and will be ignored."
echo $" It is sufficient to specify IPADDR and NETMASK."
echo
+ unset NETWORK
}
### BROADCAST
@@ -2001,6 +2002,7 @@ function do_broadcast() {
echo $"The BROADCAST parameter isn't used anymore and will be ignored."
echo $" It is sufficient to specify IPADDR and NETMASK."
echo
+ unset BROADCAST
}
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
06-02-2010, 02:58 PM
David Cantrell
Fix readNetInfo and writeEnabledNetInfo for s390 (#595388)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
These changes look fine from a technical standpoint, but in an effort to keep
git commits to a single functional change, could you break these changes in to
multiple commits? Chris already requested this, but I'm requesting it as
well. Even though they are for the same BZ, the actual changes included here
are for different issues. The BZ filed is really a catch-all BZ, which is
fine, but we would prefer separate git commits. Make sure you reference the
BZ number in each patch per the docs/commit-log.txt file.
Also, could you stop referencing many git commits via their full hash? It
makes the commit log message difficult to read.
On Mon, 31 May 2010, Steffen Maier wrote:
Before f17d989bc2cb50ffaedcf97a332095180511a272, writeEnabledNetInfo
did not seem to be called on s390. Now that it is, it turned out that
readNetInfo and writeEnabledNetInfo are not complete.
Loader does not need to handle or understand layer2 and portno so
consolidate that into opaque options. This will prevent issues such as
ef100b6baa5324fb5f5060b21f804bddc16ebead or
9caaca40bcaffb502dc58659e828f97d78a2d0f8
and is also transparent to future extensions in linuxrc.
This change should be a single commit. Referencing
ef100b6baa5324fb5f5060b21f804bddc16ebead and
9caaca40bcaffb502dc58659e828f97d78a2d0f8 is less desirable than referencing
the other bugs in a "Related: rhbz#XXXXXX" format. Also, it's best to not
make promises we can't guarantee ("...and is also transparent to future
extensions in linuxrc").
Really ignore parm/conf file options that are deprecated,
otherwise fixed loader would leave them in the ifcfg file.
I don't know what change this sentence refers to in the patch.
Tell which stacks to configure in /etc/sysconfig/network
This should be a single commit.
GATEWAY in ifcfg is really IPv4 only.
This should be a single commit.
Please fixed loader to parse DNS and write DNS1,DNS2,... itself (again).
This should be a single commit.
Correctly parse OPTIONS whose value includes equal signs because
the values are attribute value pairs. See also bug 597205 and
8549a36d4b22171992951a272b82f0aa14234dc4.
My guess is this change should be part of the commit above to fix the handling
of layer2 and portno, but I could be wrong.
Do parse DOMAIN for DNS search suffixes which are very hand on s390
where it's sometimes hard to write more than 80 chars for
repo/stage2/updates etc. Also write out quoted since it is a whitespace
separated list.
This should be a single commit.
Don't write HWADDR on s390. See also 3411cda88be7ec7fe57ec5c9c73d15148354a414
and 2c1aab43a1010ec0e113fa86e4daea9cd99de7f6 (bug 546005) or bug 591533.
/* flags */
uint64_t flags;
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index b421062..3716979 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -1992,6 +1992,7 @@ function do_network() {
echo $"The NETWORK parameter isn't used anymore and will be ignored."
echo $" It is sufficient to specify IPADDR and NETMASK."
echo
+ unset NETWORK
}
### BROADCAST
@@ -2001,6 +2002,7 @@ function do_broadcast() {
echo $"The BROADCAST parameter isn't used anymore and will be ignored."
echo $" It is sufficient to specify IPADDR and NETMASK."
echo
+ unset BROADCAST
}
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
06-02-2010, 07:39 PM
Steffen Maier
Fix readNetInfo and writeEnabledNetInfo for s390 (#595388)
Steffen Maier (8):
Handle OPTIONS in ifcfg files transparently in loader (#595388)
Really ignore deprecated parm/conf file options in linuxrc.s390
(#595388)
Tell which stacks to configure in /etc/sysconfig/network on s390
(#595388)
GATEWAY in linuxrc.s390's ifcfg is really IPv4 only (#595388)
Allow loader to parse DNS and write DNS1,DNS2,... itself (again).
(#595388)
Do parse DOMAIN for DNS search suffixes in loader (#595388)
Don't let loader write HWADDR to ifcfg file on s390. (#595388)
Remember when IPv4 IPADDR has been read from ifcfg file in loader
(#595388)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
06-02-2010, 08:08 PM
David Cantrell
Fix readNetInfo and writeEnabledNetInfo for s390 (#595388)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 2 Jun 2010, Steffen Maier wrote:
Steffen Maier (8):
Handle OPTIONS in ifcfg files transparently in loader (#595388)
Really ignore deprecated parm/conf file options in linuxrc.s390
(#595388)
Tell which stacks to configure in /etc/sysconfig/network on s390
(#595388)
GATEWAY in linuxrc.s390's ifcfg is really IPv4 only (#595388)
Allow loader to parse DNS and write DNS1,DNS2,... itself (again).
(#595388)
Do parse DOMAIN for DNS search suffixes in loader (#595388)
Don't let loader write HWADDR to ifcfg file on s390. (#595388)
Remember when IPv4 IPADDR has been read from ifcfg file in loader
(#595388)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
06-11-2010, 08:35 PM
David Cantrell
Fix readNetInfo and writeEnabledNetInfo for s390 (#595388)
On Wed, 2 Jun 2010, David Cantrell wrote:
On Wed, 2 Jun 2010, Steffen Maier wrote:
Steffen Maier (8):
Handle OPTIONS in ifcfg files transparently in loader (#595388)
Really ignore deprecated parm/conf file options in linuxrc.s390
(#595388)
Tell which stacks to configure in /etc/sysconfig/network on s390
(#595388)
GATEWAY in linuxrc.s390's ifcfg is really IPv4 only (#595388)
Allow loader to parse DNS and write DNS1,DNS2,... itself (again).
(#595388)
Do parse DOMAIN for DNS search suffixes in loader (#595388)
Don't let loader write HWADDR to ifcfg file on s390. (#595388)
Remember when IPv4 IPADDR has been read from ifcfg file in loader
(#595388)
Better, but patches 1, 4, 5, and 6 do not apply.
Everything has been applied now.
--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list