Bug 159390 - disklessrc fail if more than one pci network cards are installed
disklessrc fail if more than one pci network cards are installed
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: system-config-netboot (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-02 07:41 EDT by ulrich
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 0.1.18
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-25 06:05:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ulrich 2005-06-02 07:41:09 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0

Description of problem:
disklessrc fails in sub findhardware when multiple (2 in my case)
pci network cards are installed. the problem is the line IFS="\n".
this does not work as expected. changing the line to IFS=$'\n' fixed it for me.

*** disklessrc.rpmorig  2005-05-27 22:06:29.000000000 +0200
--- disklessrc  2005-06-01 19:08:17.000000000 +0200
***************
*** 55,61 ****
          MODULE=""

        IFSOLD=$IFS
!         IFS="\n"
          for CARDLIST in `lspci -n | grep "Class $CLASSNUM"`; do
          {
              PCIID=`echo $CARDLIST | cut -d ' ' -f 4 | sed -e 's/:/    0x/'` &&
--- 55,61 ----
          MODULE=""

        IFSOLD=$IFS
!         IFS=$'\n'
          for CARDLIST in `lspci -n | grep "Class $CLASSNUM"`; do
          {
              PCIID=`echo $CARDLIST | cut -d ' ' -f 4 | sed -e 's/:/    0x/'` &&

Version-Release number of selected component (if applicable):
system-config-netboot-0.1.16-1_FC3

How reproducible:
Always

Steps to Reproduce:
1. install 2 pci network cards on a diskless workstation
2. use system-config-netboot to create a diskless netboot system.
3. boot the diskless workstation
  

Additional info:
Comment 1 Jason Vas Dias 2005-06-08 18:36:03 EDT
Thanks for pointing this out - none of my test boot clients had 
multiple interfaces :( 
This has now been fixed with system-config-netboot-0.1.17-1EL3 ,
soon to be in fc3-updates, and which meanwhile can be downloaded from:
   http://people.redhat.com/~jvdias/system-config-netboot
Please try it out and let me know of any issues - thanks.

Comment 4 Walter Justen 2005-08-25 06:05:04 EDT
Thanks for the bug report. This particular bug was fixed and a update package
was published for download. Please feel free to report any further bugs you find.

Note You need to log in before you can comment on or make changes to this bug.