[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Newbie to kickstart - question about loading linux from dvd


How did get the RPM's to DVD? do you have the install CD's? just copying the the RPM's to a DVD will not make it a valid install media....

Here is a little how to I followed to create an install DVD for the CD's:

mount -o ro,loop RHEL4-i386-WS-disc1.iso /mnt/tmp1  # etc. for discs 2,3,4

cp -a /mnt/tmp1/isolinux /mnt/tmp1/.discinfo .

chmod +w isolinux/isolinux.bin

{Edit ./.discinfo file to list four CDs "1,2,3,4" instead of just "1"}

mkisofs -v -pad -o RHEL4-i386-DVD.iso \
  -V "RHEL4-i386-DVD.2005-02-16" \
  -b isolinux/isolinux.bin -c isolinux/boot.cat \
  -no-emul-boot -boot-load-size 4 -boot-info-table \
  -r -R -T -m TRANS.TBL \
  -x /mnt/tmp1/.discinfo \
  -x /mnt/tmp1/isolinux \
  -graft-points /mnt/tmp1 .discinfo=.discinfo isolinux/=isolinux \
  RedHat=/mnt/tmp2/RedHat \
  RedHat=/mnt/tmp3/RedHat \

/usr/lib/anaconda-runtime/implantisomd5 RHEL4-i386-DVD.iso (This needs the anaconda-runtime rpm installed)

If you want to add additonal packages and a kickstart file to the DVD you actually need to copy the 1st CD to /mnt/tmp1 rather than mounting it.

In order to get the kickstart install to prompt for IP address and hostname (even thought it is not in the kickstart file - this is a bug in the Anaconda Installer) you need to do the follwing:

take the stage2.img from the CD 1, copy it /tmp or whatever.
mkdir /mnt/img
mkdir /tmp/new_img
mount -o loop /tmp/stage2.img /mnt/img
rsync -avv /mnt/img/* /tmp/img/
make sure the hidden .buildstamp file gets copied as well...

now you want to look at the /tmp/img/usr/lib/anaconda/kickstart.py

and comment out the below line:


This will force kickstart to prompt for networking.

then create your new stage2.img :

mkcramfs /tmp/new_img /tmp/stage2.img.new

and copy it back (cp /tmp/stage2.img.new /mnt/tmp1/stage2.img) to your temporary CD making directory, re-create your ISO, burn it and you're good to go.

Hope this helps


----- Original Message ----
From: John Brussard <jbrussard netnumber net>
To: kickstart-list redhat com
Sent: Wednesday, June 7, 2006 2:18:45 PM
Subject: FW: Newbie to kickstart - question about loading linux from dvd


I want to install ES4U2 from a kickstart DVD, I have loaded the all the RPMS’s onto the dvd as well as the ks.cfg file and changed the isolinux.cfg file. 


My problem is when it looks for the redhat installations disks, it says:



Red Hat Enterprise Linux CD was not found in any of your CDROM drives”


Here’s my ks.cfg file:


root ncs-ard1 backup]# more ks.cfg

#Generated by Kickstart Configurator

#platform=x86, AMD64, or Intel EM64T


#System  language

lang en_SG

#Language modules to install

langsupport --default=en_US.UTF-8 en_US.UTF-8

#System keyboard

keyboard us

#System mouse


#Sytem timezone

timezone --utc America/New_York

#Root password

rootpw --iscrypted $1$1OOUHcE9$nPOink4oNK7B/1vK06RZl1

bootloader --location=mbr --append="rhgb quiet"

#Use text mode install


#Install OS instead of upgrade


#Use CDROM installation media


#System bootloader configuration

bootloader --location=mbr


clearpart --all --drives=sda,sdb

part /boot --fstype ext3 --size=256 -->

part /home --fstype ext3 --size=4096 -->

part /opt/nnmysql/log --fstype ext3 --size=4096 -->

part /opt --fstype ext3 --size=4096 -->

part /var --fstype ext3 --size=4096 -->

part /usr --fstype ext3 --size=4096 -->

part / --fstype ext3 --size=4096 -->

part swap --size=2048 -->

part /backup --fstype ext3 --size=100 --grow -->

part /opt/nnmysql/data --fstype ext3 --size=100 --grow -->

#Clear the Master Boot Record

#zerombr yes

#System authorization infomation

auth  --useshadow  --enablemd5

#Firewall configuration

firewall --disabled

#Do not configure XWindows


#Package install information

%packages --resolvedeps

@ admin-tools

@ system-tools

@ gnome-desktop

@ dialup

@ compat-arch-support

@ base-x

@ server-cfg







My isolinux.cfg file


[root ncs-ard1 isolinux]# more isolinux.cfg

default nnks

prompt 0

timeout 600

display boot.msg

F1 boot.msg

F2 options.msg

F3 general.msg

F4 param.msg

F5 rescue.msg

F7 snake.msg

label nnks

  kernel vmlinuz

  append ks=cdrom:/ks.cfg initrd=initrd.img devfs=nomount ramdisk_size=9216 text


directory structure,


Kickstart-list mailing list
Kickstart-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]