Bug 11945 - Kickstart install reports "Exception Occured" when using --onpart option
Summary: Kickstart install reports "Exception Occured" when using --onpart option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Fulbright
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-06-07 13:33 UTC by Marc Schmitt
Modified: 2007-04-18 16:27 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-06-09 21:21:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Marc Schmitt 2000-06-07 13:33:36 UTC
We install PCs with RedHat 6.2. Kickstart works fine for blank harddrives.
On a multiboot system with a 4GB IDE drive , the following partitions
exist:

Primary DOS partition (FAT-16), size 300MB
Extended DOS partition (FAT-16), size 500MB
Primary QNY partition (XOSL dedicated partition), size 7MB
Primary Linux partition (ext2fs), size 3300MB

I set up the following partition information in ks.cfg:

clearpart --linux
part / --size 200 --onpart hda4
part swap --size 256 --onpart hda4
part /var --size 500 --onpart hda4
part /tmp --size 500 --onpart hda4
part /.afs_cache --size 100 --onpart hda4
part /usr --size 1000 --onpart hda4
part /local --size 100 --grow --maxsize 100000 --onpart hda4

I added the --onpart option because the kickstart installation stopped at
the partitioning/mounting point screen, allthough clearpart --linux was
given.

With --onpart, the kickstart install abandons with an exception message,
saying:

Traceback (innermost last):
  File "/usr/bin/anaconda", line
341, in ?
    extraModules = extraModules)
  File "usr/lib/anaconda/todo.py",
line 332, in __init__
    self.setClass(instClass)
  File "/usr/lib/anaconda/todo.py",
line 822, in setClass
    todo.addMount(dev, mntpoint,
fstype, reformat)
  File "/usr/lib/anaconda/todo.py"
line 395, in addMount
    self.mounts[location] = (device,
fsystem, reformat)
AttributeError: mounts


I used the updated boot floppy (bootnet-20000407.img). It seems --onpart is
not fully implemented yet.

Comment 1 Brock Organ 2000-06-09 21:21:19 UTC
a quick note about your use of --onpart above: --onpart does not create new
partitions, it applies to existing partitions at the time of install, and as
such may conflict with the "clearpart --linux" (if one of the partitions you
wanted to "use" via the onpart command was ext2)...

secondly, each onpart clause above uses hda4 as the destination drive, in effect
saying that you wanted /, swap, /var, /tmp, /.afs_cache, /usr, /local all on
/dev/hda4, was that what you intended?

Perhaps something like this helps: (?)

clearpart --linux
part / --size 200 
part swap --size 256 
part /var --size 500 
part /tmp --size 500 
part /.afs_cache --size 100 
part /usr --size 1000 
part /local --size 100 --grow --maxsize 100000 




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