problem with %pre script writing to /tmp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi people,
I am experiencing an interesting problem with a %pre script in my kickstart file ...

# pre-script that is run to determine partition layout
%pre
#!/bin/sh

# get list of drives with size of each drive
set $(list-harddrives)

firstDiskSize=$2

if [ $firstDiskSize >= "20480" ] ; then
echo "
part swap --size=500 --asprimary
part /boot --size=100 --fstype ext3 --asprimary
part / --size=2000 --fstype ext3 --asprimary
part /usr --size=2000 --fstype ext3
part /tmp --size=1000 --fstype ext3
part /var --size=4000 --fstype ext3
part /home --size=1000 --grow --fstype ext3
" > /tmp/partinfo
else
echo "
part swap --size=500 --asprimary
part /boot --size=100 --fstype ext3 --asprimary
part / --size=500 --fstype ext3 --asprimary
part /usr --size=1000 --fstype ext3
part /tmp --size=500 --fstype ext3
part /var --size=1000 --fstype ext3
part /home --size=100 --grow --fstype ext3
" > /tmp/partinfo
fi

My problem is not in the script itself - I know that it works. My problem is that anaconda bugs out on me when I run this on a brand spanking new IBM xSeries 225 server with a new raid 0 setup of 2 36Gb hard drives. It says that it cannot include the file /tmp/partinfo because it doesn't exist (btw - i use an %include in my general ks.cfg section). When I run this exact same kickstart in a vmware machine that I use for testing - it works fine.

This leads me to believe it could be something to do with the IBM disks not having been initialized or something like that. Anaconda quits out and suggests a reboot too quickly for me to get hold of a shell to see if I can manually write to /tmp.

Any ideas?

pantz

--
Before you criticize someone, walk a mile in their shoes ...
That way when you do criticize them, you're a mile away and you have their shoes!



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux