Installation from kickstart don't eject cdrom

Edwind Richzendy Contreras Soto richzendy at gmail.com
Sat Aug 11 05:29:26 UTC 2007


Hi all.

My name is Edwind Contreras and i wrote a kickstart file for install
somethings fedora 7 clients (  IBM lenovo model 9645-G1S [1]), but  after
the install all packets and run %post scripts the cdrom tray don't eject,
just reboot, somebody can see my kickstart file and suggest something about
this?

My kickstart file is this:

#platform=AMD64 o Intel EM64T

# System authorization information
auth --useshadow  --enablemd5  --enableldap --enableldapauth --ldapserver=
192.168.0.254 --ldapbasedn=ou=People,dc=domain,dc=com,dc=ve
# Use text mode install
text
# Firewall configuration
firewall --disabled
firstboot --disable
# System keyboard
keyboard la-latin1
# System language
lang es_VE
# Root password
rootpw --iscrypted
$1$asdasreyt8IX/s//iouoiS$z1hVloiuoi7wj7Kyd11ytytutyiyui5869K.y/
# SELinux configuration
selinux --disabled
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
#network
network --bootproto static --ip 192.168.0.10 --netmask 255.255.255.0--gateway
192.168.0.254 --nameserver 192.168.0.254
# Reboot after installation
reboot
# System timezone
timezone --isUtc America/Caracas
# X Window System configuration information
xconfig  --driver=intel --defaultdesktop=GNOME --depth=24
--resolution=1024x768 --videoram=256
# System bootloader configuration
bootloader --append="vga=791" --location=mbr
# Partition clearing information
clearpart --linux  --drives=sda
# Disk partitioning information
part /boot --fstype="ext3" --ondisk=sda --size=100 --bytes-per-inode=4096
part pv.4 --grow --ondisk=sda --size=1 --bytes-per-inode=4096
volgroup VolGroup00 --pesize=32768 pv.4
logvol swap --fstype="swap" --grow --maxsize=992 --size=496 --name=LogVol01
--vgname=VolGroup00 --bytes-per-inode=4096
logvol / --fstype="ext3" --grow --size=9000 --name=LogVol00
--vgname=VolGroup00 --bytes-per-inode=4096

%post
chkconfig messagebus off
chkconfig avahi-daemon off
chkconfig avahi-dnsconfd off
chkconfig haldaemon off
chkconfig ConsoleKit off
chkconfig yum-updatesd off
chkconfig fistboot off
chkconfig pcscd off
echo "session required        pam_mkhomedir.so skel=/etc/skel/ umask=0022"
>> /etc/pam.d/gdm
cat << EOF > /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
/sbin/netconfig
touch /var/lock/subsys/local
EOF
echo '#!/bin/sh' >> /sbin/netconfig
echo 'IP=`/sbin/ifconfig eth0 | grep inet | cut -d : -f 2 | cut -d " " -f
1`' >> /sbin/netconfig
echo 'if [ $IP == 192.168.0.10 ] ; then' >> /sbin/netconfig
echo '/usr/bin/system-config-network' >> /sbin/netconfig
echo 'sed -i "s/"id:3:initdefault:"/"id:5:initdefault:"/g" /etc/inittab' >>
/sbin/netconfig
echo 'for i in {1..6} ; do sed -i "s/"$i:2345"/"#$i:2345"/" /etc/inittab ;
done' >> /sbin/netconfig
echo 'reboot' >> /sbin/netconfig
echo 'else' >> /sbin/netconfig
echo 'echo "IP Configurada adecuadamente"' >> /sbin/netconfig
echo 'fi' >> /sbin/netconfig
chmod 775 /sbin/netconfig
cat << EOF > /sbin/profilesync
#!/bin/sh
rsync -r rsync://192.168.0.254/profiles /etc/desktop-profiles/
EOF
chmod 775 /sbin/profilesync
echo "*/10 * * * * /sbin/profilesync" >> /var/spool/cron/root
chmod 600 /var/spool/cron/root
/etc/init.d/crond restart
cat << EOF > /etc/modprobe.conf
alias eth0 tg3
alias scsi_hostadapter ata_piix
alias snd-card-0 snd-hda-intel
options snd-hda-intel position_fix=1 model=3stack
EOF
eject
wait
eject /tmp/cdrom
wait
eject /dev/cdrom
wait

%packages
....................
something packets
....................

Thanks, any help will be appreciated


[1]
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-67159
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070811/b0934b2d/attachment.htm>


More information about the Kickstart-list mailing list