Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 109036 - Pxelinux default config file appended to not replaced
Pxelinux default config file appended to not replaced
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-netboot (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2003-11-04 11:36 EST by Phillip Sorensen
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-11-05 08:14:29 EST
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 Phillip Sorensen 2003-11-04 11:36:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131

Description of problem:
Anytime I change a value that causes the
/tftpboot/linux-install/pxelinux.cfg/default to be rewritten, a new
copy is appended to the old one.  The new copy should replace the old

It appears to me, that the problem is in the pxeOSList.saveOSList
method in pxeos.py.  The line 

defaultFD=open("%s/pxelinux.cfg/default" % PXEBOOTDIR, "a")

should be

defaultFD=open("%s/pxelinux.cfg/default" % PXEBOOTDIR, "w")

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Select Configure -> Network Installation from the menu of the
redhat-config-netboot window.
2. Click the close button
3. Check the /tftboot/linux-install/pxelinux.cfg/default file
4. Repeat

Additional info:
Comment 1 Daniel Walsh 2003-11-05 08:14:29 EST
Thanks this bug is already fixed in rawhide  0.1.1-21


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