LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-29-2006, 08:36 AM   #1
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
kickstart help.. (redhat AS4)


Hi people...im trying to use kickstart...its okay ...runs nicecly...i created a bootable cd with only the rpms i need for the install (minimal)...the trouble i'm having is with post install
together with this cd , i burn some other things i wanted to install (like tivoli , netbackup etc).
so..my ks.cfg looks like this.

# apos a instalacao
%post
/sbin/chkconfig --level 345 telnet off
/sbin/chkconfig --level 345 finger off
/sbin/chkconfig --level 345 lpd off
/sbin/chkconfig --level 345 httpd on
/sbin/chkconfig --level 345 gpm off
/sbin/chkconfig --level 345 cups off
/sbin/chkconfig --level 345 sendmail off
mount /tmp/cdrom /mnt/source
cd /mnt/source/lnx_padrao
./PadraoLinux.sh
cd /
umount /mnt/source
##


i noticed after install , the cdrom drive in unmounted , so i tried to mount it and , and go to cd drive and try to execute the script wich will install some of the software i need and add someusers , groups etc eetc..

but...doesnt work..can someone help?
 
Old 05-02-2006, 04:20 AM   #2
Neerad
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
AS4 kickstart

Congratulations! At least you managed to get kickstart working for RHEL AS4.

I am now at the verge of getting frustrated as my kickstart (from cdrom) terminates abnormally right after creating partitions.

I could manage to get RHEL WS3 kickstart working nicely upto the point i required it to.

would you please help me letting me know the steps for AS4 (if different than that for WS3?)

There are no error messages, no clue nothing that i could work upon.
Works fine upto creating and formatting partitions, then "transfering the install image to disk" then the x server comes up okay... and then immediately "abnormal termination of install" is shown and the filesystem is unmounted and the final message to reboot the machine appears.

Can you please tell me the necessary packages that must be there in addition to what I want?

Can you please provide some clue to it?

Regards,

Neerad
 
Old 05-02-2006, 11:25 PM   #3
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
i send my ks.cfg tomorrow when i get to work.
 
Old 05-03-2006, 03:17 PM   #4
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
my ks.cfg
put it in /isolinux
and then on boot type linux ks=cdrom:/isolinux/ks.cfg

ks.cfg
#platform=x86, AMD64, or Intel EM64T

#System language
lang en_SG
#Language modules to install
langsupport pt_BR --default=en_SG
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone America/Sao_Paulo
#Root password
rootpw --iscrypted $1$tH.tVHRt$IBlB/ROkA7GRkWarxZJG4/
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel

#Disk partitioning information
part /boot --fstype ext3 --size 200
part pv.2 --size=0 --grow
volgroup VolGroup00 --pesize=32768 pv.2
logvol /var --fstype ext3 --name=LogVol02 --vgname=VolGroup00 --size=5000
logvol /home --fstype ext3 --name=LogVol01 --vgname=VolGroup00 --size=5000
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=5000
logvol swap --fstype swap --name=LogVol99 --vgname=VolGroup00 --size=500



#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=static --ip=5.5.5.5 --netmask=255.255.255.0 --gateway=1.1.1. 1 --nameserver=1.1.1.1 --device=eth0
#Firewall configuration
firewall --disabled
selinux --disabled
#Do not configure XWindows
skipx
#Package install information
%packages --resolvedeps
kernel-smp
grub
lvm2
e2fsprogs
lm_sensors
net-snmp-libs
net-snmp



# apos a instalacao
%post
/sbin/chkconfig --level 345 telnet off
/sbin/chkconfig --level 345 finger off
/sbin/chkconfig --level 345 lpd off
/sbin/chkconfig --level 345 httpd on
/sbin/chkconfig --level 345 gpm off
/sbin/chkconfig --level 345 cups off
/sbin/chkconfig --level 345 sendmail off
/sbin/chkconfig --level 345 portmap off
 
Old 05-05-2006, 12:02 AM   #5
Neerad
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Hi, thanks for sending me the ks file. It didn't help though.

My ks was almost similiar to the one you sent.

The issue seems something else.

Can you please send me the list of the packages you included? Just do ls > lst. and send me the lst file please.
 
Old 05-05-2006, 03:01 AM   #6
Neerad
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
BTW what exactly is the trouble with post section?
 
Old 05-06-2006, 12:35 AM   #7
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
the packages list with a ls command? didnt get that... would it be with rpm -qa maybe?
the problem is.....together with the redhat cd...i've burned some other applications ...like tivolli client and netbackup client (all in same cd.... redhat plus these apps)
what happens is...after the install(when post is executed) ....the redhat installation umounts the installation cd (where netbackup and tivoli is)...what i wanted was: run a script from the cd that would install and netbackup/tivolli and some other stuff...but with the cd unmounted..noway..
i tried to send a mount command in post section...but doesnt work.i guess i will have to make a rpm package to install these stuff.
 
Old 05-07-2006, 11:27 PM   #8
Neerad
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Why don't you put the path of your script for installation in the post section? (after the last /sbin/chkconfig --level 345 portmap off command)


yeah ! rpm -qa . What I menat was that since you have the kickstart CD already, you can just do a "ls RedHat/RPMS > somefile" and send the list of the packages.

I think, It would be better if we exchange the series of commands used to build the cd. Let me send you mine. Cause there is a small difference i already have observed. You'd asked me to type the ks.cfg path at the prompt, whereas I have specified it in isolinux.cfg file.


Here's what I did for making the CD.


2) Trim down the list of packages. (mine has 190 pakckages in all)
3) Test the list for dependency with rpm --test --dbpath /tmp/testdb -Uvh *.rpm 2>y.sh >x
4) Cd /usr/AS4/ONE_CD
5) Build hdlist with genhdlist --withnumbers --hdlist RedHat/base/hdlist `pwd`
6) Edit /usr/AS4/ONE_CD/isolinux/isolinux.cfg for the following to be added.
a. Edit top line to have default ks
b. label ks
c. kernel vmlinuz
d. append ks=cdrom:/ks.cfg initrd=initrd.img ramdisk_size=8192
7) make the iso with the following command

mkisofs -o /root/redAS4.iso -b isolinux/isolinux.bin -c bo
ot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T /usr/AS4/ONE_CD/
 
Old 05-09-2006, 08:10 AM   #9
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
this is the script i use to create my iso...

mkisofs -o boot.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m bootRH/TRANS.TBL -x bootRH/.discinfo -x bootRH/isolinux -graft-points .dis cinfo=bootRH/.discinfo isolinux=bootRH/isolinux RedHat/=bootRH/RedHat SRPMS/=bootRH/SRPMS lnx_padr ao/=bootRH/lnx_padrao

bootRH is the dir where resides my redhat.. lnx_padrao is the dir where i put those external applications i wanted to install after the installation...if you give me your email i'll send my rpm pack list.

the problem of trying to give the fullpath of my script in post install section is: when post install is executed....the cdrom is unmounted!!! so ...it doesnt find my script..i guess i will have to create a rpm's !!!
 
Old 05-10-2006, 12:30 AM   #10
Neerad
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Hey! Good news for you.

First, not only i am able to create the kickstart cd, I have done what you wanted to do.

I have copied the oracle and my own software files in post section.


This is how you have to do it.

1) use --nochroot with post as follows.
%post --nochroot.
2) mount the cdrom again. as follows
mkdir /tmp/cd (do not use 'cdrom' as it alredy exists)
mount /tmp/cdrom /tmp/cd
3) copy any files you require to from /tmp/cd to the newly made filesystem (/mnt/sysimage)
4) call the copied scripts.
5) unmount cdrom
umount /tmp/cd

Remember the currently available filesystem / , /usr , /etc will disappear after the reboot. So if you copy anything in this file system it will not be available after the reboot.

So copy any/all required files to /mnt/sysimage..... (this is the file system which will come in effect after the first boot. only "/mnt/sysimage" part will be gone)

BTW if you plan to create rpms, it will also be required to put in the comps.xml and the hdlist. So

Hope it helps.

Neerad
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA with Redhat AS4 consty Red Hat 5 02-09-2006 02:44 AM
DNS problem for Redhat AS4 gz_xmg Linux - Enterprise 1 11-08-2005 08:01 PM
Sis chipset and Redhat AS4 topograf Linux - Hardware 0 11-04-2005 05:19 PM
How to share a modem on Redhat AS4 simile28 Linux - Networking 0 08-07-2005 01:20 PM
NIS on Redhat Enterprise Linux AS4 Simon04 Linux - Networking 2 04-12-2005 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration