The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Kickstart File Georgesaa UNIX for Advanced & Expert Users 2 3 Weeks Ago 07:17 AM
Simple script to modify kickstart file beeloo Shell Programming and Scripting 7 05-15-2008 08:49 AM
NFS not mounting during kickstart Andrek Linux 2 10-23-2007 08:39 PM
Red Hat kickstart from DVD? rhfrommn Linux 2 10-01-2007 11:12 AM
Redhat AS 3.0 Kickstart file issue Acleoma Linux 2 08-27-2004 06:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-02-2008
Registered User
 

Join Date: Apr 2008
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-08-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,069
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this 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.
Reply With Quote
Google UNIX.COM
Reply



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

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



All times are GMT -7. The time now is 11:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102