Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
google site



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 05-02-2008
Registered User
 

Join Date: Apr 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
kickstart file questions

Hi,

I have few questions to make this kickstart file to be more efficient:

1) I would like to reboot the server once the installation (included installed all the optional rpm) is done.
2) Is there a nicer way to install rpm packages? (Here I included the commands in my kickstart file)


# Kickstart file automatically generated by anaconda.

install
nfs --server=10.10.10.200 --dir=/vault/redhat/rhel5/5.1/x86_64
key --skip
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip 10.10.10.20 --netmask 255.255.255.0 --gateway 10.10.10.1 --nameserver
10.10.10.100--hostname abc
network --device eth1 --onboot no --bootproto dhcp --hostname abc
rootpw --iscrypted $1$r3I9vk75$JWCGlXqgYd0/55lfg09NJ.
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=sda
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.6 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.6
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=25600
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=8192
logvol /abc --fstype ext2 --name=LogVol03 --vgname=VolGroup00 --size=25216
logvol /var --fstype ext3 --name=LogVol02 --vgname=VolGroup00 --size=10240

%packages
@editors
@core
@base
@java
@base-x
@admin-tools
kexec-tools
device-mapper-multipath
xorg-x11-utils
xorg-x11-server-Xnest
libsane-hpaio
-sysreport

%post
chkconfig --del autofs
chkconfig --del bluetooth
chkconfig --del cpuspeed
chkconfig --del dhcdbd
chkconfig --del dund
chkconfig --del gpm
chkconfig --del hidd
chkconfig --del ip6tables
chkconfig --del iptables
chkconfig --del irda
chkconfig --del netconsole
chkconfig --del pand
chkconfig --del pcscd
chkconfig --del rhnsd
chkconfig --del wpa_supplicant
chkconfig --del yum_updatesd
mkdir -p /mnt/cd
mount /dev/hda /mnt/cd
cd /mnt/cd/Server
rpm -i cpp-4.1.2-14.el5.x86_64.rpm
rpm -i sysstat-7.0.0-3.el5.x86_64.rpm
rpm -i ypserv-2.19-3.x86_64.rpm
rpm -i ntp-4.2.2p1-7.el5.x86_64.rpm
rpm -i am-utils-6.1.5-4.1.el5.x86_64.rpm
rpm -i gdb-6.5-25.el5.x86_64.rpm
rpm -i strace-4.5.16-1.el5.1.x86_64.rpm
rpm -i bind-devel-9.3.3-10.el5.x86_64.rpm
rpm -i bind-9.3.3-10.el5.x86_64.rpm
rpm -i bind-chroot-9.3.3-10.el5.x86_64.rpm
Sponsored Links
  #2  
Old 05-08-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,374
Thanks: 0
Thanked 1 Time in 1 Post
Given the rpm command syntax, -i flag means install. When I'm installing rpms, I usually do "rpm -Uv package.rpm" - -u for update, and -v for verbosity, so that's another way, but -i is best. Also, if you want to reboot, just add a reboot command based on your distro - it may be reboot, shutdown -r now or something similar.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Simple script to modify kickstart file beeloo Shell Programming and Scripting 9 02-12-2009 12:54 PM
Kickstart File Georgesaa UNIX for Advanced & Expert Users 2 06-12-2008 10:17 AM
NFS not mounting during kickstart Andrek Linux 2 10-23-2007 11:39 PM
Red Hat kickstart from DVD? rhfrommn Linux 2 10-01-2007 02:12 PM
Redhat AS 3.0 Kickstart file issue Acleoma Linux 2 08-27-2004 09:36 AM



All times are GMT -4. The time now is 09:22 PM.