Bug 159390 - disklessrc fail if more than one pci network cards are installed
disklessrc fail if more than one pci network cards are installed
Product: Fedora
Classification: Fedora
Component: system-config-netboot (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
Depends On:
  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:
Last Closed: 2005-08-25 06:05:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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 ****

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

!         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):

How reproducible:

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:
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.