Release Engineering

Tasklist

FS#12378 - bad network autoconfig in /etc/rc.conf when network on eth1

Attached to Project: Release Engineering
Opened by Eric Barrat (nowahn) - Sunday, 07 December 2008, 19:41 GMT
Last edited by Gerhard Brauer (GerBra) - Saturday, 11 July 2009, 17:04 GMT
Task Type Bug Report
Category AIF
Status Closed
Assigned To Dieter Plaetinck (Dieter_be)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version 2009.08-alpha
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

when there are 2 ethenet interfaces (eth0 and eth1), and network is on eth1 :
- the install script writes "eth1=..." to /etc/rc.conf (that's OK)
- but it writes "INTERFACES=(eth0)"

note that I use dhcp, I did not test using static configuration, in case in changes something (I don't think so)

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Gerhard Brauer (GerBra)
Saturday, 11 July 2009, 17:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  Tested with 2 NICs, using eth1. Settings in rc.conf are ok.
Comment by Jud (judfilm) - Sunday, 07 December 2008, 22:06 GMT
Can you please expand on your report, relevant version numbers and include relevant config files?
Comment by Eric Barrat (nowahn) - Monday, 08 December 2008, 20:43 GMT
I think I was not clear, I think I don't need to join any config file for this bug :
- it is an installation bug, so it might be a bug in the install script
- I am using the 2008.06 CD, but I have just tested the new version (2008.12 posted yesterday for test) and it makes the same bug
http://bbs.archlinux.org/viewtopic.php?id=60385
(I think this bug has always been present, but never seen because configurations with 2 ethernet interfaces and only eth1 used are rare)
the only config lines being involved in that bug are :
eth1="..."
INTERFACES=(eth0)
in /etc/rc.conf, but in the system being installed, not in the system being installing it

if you really want me to join some config files or some additional version numbers, please say whitch ones because I don't know whitch ones to join
Comment by Eric Barrat (nowahn) - Tuesday, 09 December 2008, 22:14 GMT
I have forgotten an important detail :
this install bug occurs when installing from ftp, not from core CD.
when installing from ftp :
you first setup network
then install the system
when you enter "config the system" step, you are ask wether you want to keep previous network setting in /etc/rc.conf
it is here that only half the job is done :
* eth1="..." is correct
* INTERFACES=(eth0) is not correct
Comment by Aaron Griffin (phrakture) - Friday, 12 December 2008, 18:38 GMT
Do you guys know if this is still present in the latest installer changes?
Comment by Eric Barrat (nowahn) - Friday, 12 December 2008, 19:51 GMT
Yes, it is (I've tested the 2008.12 *.img image)
Comment by Aaron Griffin (phrakture) - Friday, 12 December 2008, 20:02 GMT
No... that is not an Official iso and does not use the official installer, last I checked (tpowa may have fixed this)
Comment by Tobias Powalowski (tpowa) - Sunday, 14 December 2008, 09:23 GMT
ahh, yes archboot isntaller is affected, but only dhcp config, static should work
Comment by Tobias Powalowski (tpowa) - Sunday, 14 December 2008, 09:37 GMT
fixed in archboot git
Comment by Aaron Griffin (phrakture) - Tuesday, 16 December 2008, 19:28 GMT
Ping Simo or Dan?
Comment by Aaron Griffin (phrakture) - Saturday, 24 January 2009, 23:24 GMT
Is this fixed?
Comment by Gerhard Brauer (GerBra) - Sunday, 25 January 2009, 01:36 GMT
Must be tested. On the other hand could this be fixed in the rc.conf during install.
Should not be a stopper for 2009.01 (if aif is maybe used next times, this wouldn't be fixed in current installer).
Is on my ToDo....
Comment by Dieter Plaetinck (Dieter_be) - Sunday, 25 January 2009, 09:11 GMT
I'll check aif, I agree that this is not a critical bug -> filing it for the release in a few months.
Comment by Dieter Plaetinck (Dieter_be) - Saturday, 14 February 2009, 21:30 GMT
Odd.. with $INTERFACE being the interface selected,
setup does: sed -i "s#eth0)#$INTERFACE)#g" ${DESTDIR}/etc/rc.conf
aif does: sed -i "s#INTERFACES=(eth0)#INTERFACES=($INTERFACE)#g" ${var_TARGET_DIR}/etc/rc.conf

So it should work :s

Also:
> this install bug occurs when installing from ftp, not from core CD.
really? Does anyone know if there is any difference? I mean, the installer is the same right?
Comment by Eric Barrat (nowahn) - Monday, 23 February 2009, 16:20 GMT
there is no difference between ftp CD and core CD, there is only difference between installing from CD and installing from ftp.
this bug occurs when installing from ftp from the core CD.
Comment by Dieter Plaetinck (Dieter_be) - Monday, 23 February 2009, 20:32 GMT
Tobias, you fixed this in archboot?
I cannot find the problem in /arch/setup or in AIF.

when you pick ftp, you choose $INTERFACE, and later this $INTERFACE should be replaced into /etc/rc.conf.

Do you know where the problem is?
Comment by Aaron Griffin (phrakture) - Tuesday, 24 February 2009, 19:30 GMT
Wrong Tobias - I do that all the time too :)
Comment by Tobias Powalowski (tpowa) - Sunday, 08 March 2009, 17:51 GMT
aaron since when you use archboot images ;) ?
Comment by Dieter Plaetinck (Dieter_be) - Sunday, 08 March 2009, 17:52 GMT Comment by Aaron Griffin (phrakture) - Tuesday, 10 March 2009, 20:56 GMT
I just meant - it was assigned to neri, not tpowa. (We have two Tobiases)

Loading...