When performing a kickstart instalation on cdrom an "Exeption Occurred"
message shows up.
This happends if one is trying to use the --onpart argument por the "part"
clause. Without this clause the instalation proceeds ok, but this option
is needed in order to automate instalation on machines with several disks
where partitions are already created and which situation is relevant for
The "part" clause was tried the following way,
part / --onpart hda1
Other ways where tried, which are
part / --size 1000 --onpart hda1 --ondisk hda
part / --size 1000 --onpart /dev/hda1
part / --size 1000 --onpart /dev/hda1 --ondisk hda
The Traceback (inermost last) seems to finally point to line 395 on
/usr/lib/anaconda/todo.py, saying "AttributeError: mounts".
This error has been tested on several machines with different HW setups
with the same results.
Issue has been forwarded to a developer for further action.
The problem seems to be that there is an old addMount in todo.py and that the
fstab attribute in class todo is None at the addition point in todo.py.
The problem is urgent for us because we need to set up 70 boxes of Red Hat Linux
and Windows 2000 for our computer lab at the university of Stuttgart so we can't
do repartition every installation.
Does the partition exist before doing the install?
Problem verified, will be looking into a solution.
Created attachment 212 [details]
Fixes from jorit against 6.2 installer to fix problem
Tried the patch and it shows up the DiskDruid/fdisk dialog, so having to enter
one partition location which makes it crash after formating with a "device busy"
message. In the oder hand if you leave one partition unallocated and just
allocate this one with diskdruid all other partitions specified on kickstart are
used by anaconda succesfully.
onpart + swap does not work
The patch was based on the files you sent me - are you saying that your
original source fixed the problem and that when you use the patch I created
that it no longer works? That would indicate my patch is faulty if so.
I never sent you any sources, I have used the code from the redhat 6.2 instaler
and merged them with the patch that you posted. Once the patch was merged hte
installation half worked (before never did), showing the errors that I said on
my last comment (diskdruid shows when it was not to, swap does not work with
--onpart). Doing more testing I found that raid does not work as well with
--onpart an error raises within the installation on installclass.py saying "raid
device not found". I have used the same sintax for raid that comes in the
At the moment the swap+onpart error is not very important for me as I can add it
on the postinstal section of the kickstart, while raid problem is catastrofic,
because when doing it on the postinstal for mountpoints like /var I loosse
If you mean that you have different sources than the RH 6.2 installer and that
them work with your patch (almost raid), please mail them to me so I can test
One thing Micheal left out was our patch to skip the partition winodws.
You just have to add these commands at the end of ks.cfg. We don't think
that the skip list call is at the right place because it's unconditional,
but we made it there because we know our configuration. Micheal has to figure
out the right posistion for the next release (7.0?).
It works fine for us and it is tested on 70 (identical) machines but we don't
use raid (with one disk that doesn't make sense :-)
Maybe this small patch fixes the loss of partition data.
self.installType = "install"
# no partitioning windows
# We don't think this is a good place
# to add these commands but we didn't figure out a better
# place -- and it works 4 us :-)
# Jorit <firstname.lastname@example.org>
# Fabi <Florian.Festi@rupert.informatik.uni-stuttgart.de>
--onpart works for sparc installation with the patch, but Jorit's addition of
is necessary. If a kickstart installation is used on one of our sparcs,
--onpart is the only way around of the following problem:
1) Installing on a "foreign" disk (e.g. a disk from a i386/Linux) fails,
both in text and X mode just before selecting disk partitions. The workaround
is to create the device (e.g. sda) with mknod and to run fdisk on that.
This, of course, is a problem only during the first installation on a disk.
2) If a kickstart installation without --onpart is tried, the largest
partition is placed first, which fails with buggy PROMS like ours: SILO
does not work with partitions > 1GB. Thus, I had to create the partitions
by hand and use --onpart in kickstart files.
The sparcs used here are an LX and two IPX SPARCstations with 2 GB of disk.
P.S. Thank you once more for the kickstart feature, it is a must in our lab
with 50 workstations. The new python way of doing it really helped
in debugging the problems.
Test lab - please verify latest internal version of installer fixes this bug.
verified fix in internal build ...
Seems I`m a bit late...
I downloaded ftp://rawhide.redhat.com/pub/rawhide/i386/images/bootnet.img, but
it does not work with RedHat 6.2 anymore, asking for netstg1.img.
Can someone provide a working bootnet.img that has just the --onpart bug fixed
and works with RedHat 6.2?
Sorry, please ignore/delete my posts.