Attempting a DHCP installation with a kickstart file specifying partitions
with --onpart fails with internal error in:
if bootDevice[0:2] == "md":
TypeError: unsliceable object
This is the ks.cfg:
network --bootproto dhcp
nfs --server k-el0 --dir /export/software-source-3/dsl-nm/linux/7.0/
part swap --size 64 --grow --onpart /dev/hda5
part / --size 2000 --grow --onpart /dev/hda6
part /boot --size 100 --grow --onpart /dev/hda2
lilo --location partition
timezone --utc GB
auth --useshadow --enablemd5 --enablenis --nisdomain foo
There are 2 ext2 fs, 1 fat fs and a swap fs on the /dev/hda.
These are all mountable.
It seems that the partitions are read from the kickstart file
prior to the call to:
'self.fstab = None' in todo.py
Then when getBootDevice is called in fstab.py, there are no
entries in the mount list and bang.
*** This bug has been marked as a duplicate of 19384 ***
I have discovered the error in my ks.cfg file.
I had specified --onpart /dev/hda2 rather than --onpart hda2.
Since all parts were specified in such a way, then none of
the part lines were valid. Hence anaconda not being able to
find the /boot device.
It would be useful if such a configuration error was spotted by
the kickstart parser and notified to the installer. There's
probably more idiots like myself out there !