Sponsored Content
Full Discussion: kickstart file questions
Top Forums UNIX for Advanced & Expert Users kickstart file questions Post 302191451 by beeloo on Friday 2nd of May 2008 04:02:15 PM
Old 05-02-2008
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
 

10 More Discussions You Might Find Interesting

1. Linux

Redhat Kickstart

Would anyone know how to set a NIC to 100 Full Duplex from within a kickstart bootdisk? I just added the Tigon3 module to the bootnet.img - it loads fine but auto-negotiates to 100 Half Duplex for some reason - are there any parameters I can pass on the boot disk to force it 100 Full appreciate... (2 Replies)
Discussion started by: silvaman
2 Replies

2. Linux

Redhat AS 3.0 Kickstart file issue

I am trying to create a custom ks.cfg file with redhat AS 3.0. I have a certain package list I would like to install so we have just the packages we need. The issue is in the file it show groups so I have removed them and added my list of packages as I would when useing this in AS 2.1 but for some... (2 Replies)
Discussion started by: Acleoma
2 Replies

3. UNIX for Advanced & Expert Users

Kickstart File

Hi, I was able to set up a kickstart to install Red Hat Enterprise thought a network. I'm trying to enable a NTP time server in the post section of the kickstart file and also enable/disable a few services using chkconfig. I can't seam to get it to work, can anyone help ? I don't beleive i... (2 Replies)
Discussion started by: Georgesaa
2 Replies

4. Shell Programming and Scripting

Simple script to modify kickstart file

Hi, I would like to create a script so that it will ask me the following: 1) What is the ip address? 2) What is the gateway address? 3) What is the hostname? and then put the answer to the below kickstart file (kickstart.cfg) Here I included the kickstart.cfg: # Kickstart file... (9 Replies)
Discussion started by: beeloo
9 Replies

5. Red Hat

RH Kickstart Questions..

Hello, I am pretty new to using Linux and learning as I go, my setup is extremly simple, I have 1 virtual machine running on my laptop running (ubuntu 10.04), I've created a kickstart (Red Hat) file with the ksconfig. So I know have a config file for my Redhat.iso and my VM machine. What's... (1 Reply)
Discussion started by: NelsonC
1 Replies

6. Red Hat

%include in kickstart

RHEL 5.4 I'm trying to use %include statements in my kickstarts, and am running into some problems. In %pre, I can %include /mnt/source/isolinux/setup-questions and that works just fine. One of the things it does is echo out several variables to /tmp/vars In %post --nochroot, I copy... (2 Replies)
Discussion started by: jnojr
2 Replies

7. Red Hat

Networking in kickstart

I'm using a script in %pre that prompts for IP, hostname, etc. The answers are dumped out as variables and used to set up the config files in %post All works well. Now, it's being used to install the OS on an HP Proliant that's in a remote datacenter via iLO, and it takes about an hour to... (2 Replies)
Discussion started by: jnojr
2 Replies

8. Fedora

Rhel 6.1 - How to create a kickstart file?

Can anyone tell me how you create a kickstart file for RHEL 6.1 install? I am new to this and wanting to learn Red Hat. I have a training guide that says to create one but it does not give you instructions on how to do so. (3 Replies)
Discussion started by: Saplmb
3 Replies

9. Red Hat

Trouble creating RHEL 6.5 bootable image with custom kickstart file

Hi everyone, I have a custom kickstart file from a software vendor and I'm trying to package that with a RHEL 6.5 and then attach it to a VM and install RHEL with the settings in the kickstarter file. I'm doing this from a windows PC using an app called InfraRecorder. I've extracted the... (0 Replies)
Discussion started by: 911Eric
0 Replies

10. UNIX for Beginners Questions & Answers

Unable to open input kickstart file curl#37

Hi, Getting the below error while installing from ks.cfg unable to open input kickstart file curl#37 Couldn't open file /tmp/swappart Here am trying to include /tmp/swappart file from pre section under disks and partition section. Dont know where exactly am doing wrong My kickstart file... (3 Replies)
Discussion started by: Sumanthsv
3 Replies
MAKEDELTARPM(8) 					      System Manager's Manual						   MAKEDELTARPM(8)

NAME
makedeltarpm - create a deltarpm from two rpms SYNOPSIS
makedeltarpm [-v] [-V version] [-z compression] [-m mbytes] [-s seqfile] [-r] [-u] oldrpm newrpm deltarpm makedeltarpm [-v] [-V version] [-z compression] [-s seqfile] [-u] -p oldrpmprint oldpatchrpm oldrpm newrpm deltarpm DESCRIPTION
makedeltarpm creates a deltarpm from two rpms. The deltarpm can later be used to recreate the new rpm from either filesystem data or the old rpm. Use the -v option to make makedeltarpm more verbose about its work (use it twice to make it even more verbose). If you want to create a smaller and faster to combine "rpm-only" deltarpm which does not work with filesystem data, specify the -r option. makedeltarpm normally produces a V3 format deltarpm, use the -V option to specify a different version if desired. The -z option can be used to specify a different compression method, the default is to use the same compression method as used in the new rpm. The -s option makes makedeltarpm write out the sequence id to the specified file seqfile. If you also use patch rpms you should use the -p option to specify the rpm-print of oldrpm and the created patch rpm. This option tells makedeltarpm to exclude the files that were not included in the patch rpm but are not byteswise identical to the ones in oldrpm. makedeltarpm can also create an "identity" deltarpm by adding the -u switch. In this case only one rpm has to be specified. An identity deltarpm can be useful to just replace the signature header of a rpm or to reconstruct a rpm from the filesystem. MEMORY CONSIDERATIONS
makedeltarpm normally needs about three to four times the size of the rpm's uncompressed payload. You can use the -m option to enable a sliding block algorithm that needs mbytes megabytes of memory. This trades memory usage with the size of the created deltarpm. Furthermore, the uncompressed deltarpm payload is currently also stored in memory when this option is used, but it tends to be small in most cases. SEE ALSO
applydeltarpm(8) combinedeltarpm(8) AUTHOR
Michael Schroeder <mls@suse.de> Jul 2010 MAKEDELTARPM(8)
All times are GMT -4. The time now is 05:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy