Newbie to kickstart - question about loading linux from dvd

John Brussard jbrussard at netnumber.net
Thu Jun 8 17:41:24 UTC 2006


Alexander,

 

Thank you very much for this info, it worked, except it is asking for disk3,
4 and 5.  Below is my .discinfo file.

 

I want to create a minimal Linux Installation, so I don't need all the
disks.

 

Any additional advice?

 

root at ncs-ard1 backup]# more .discinfo 

1128193362.766911

Red Hat Enterprise Linux 4

x86_64

1,2

RedHat/base

RedHat/RPMS

RedHat/pixmaps

 

Regards,

John

 

  _____  

From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Alexander Rau
Sent: Wednesday, June 07, 2006 2:25 PM
To: Discussion list about Kickstart
Subject: Re: Newbie to kickstart - question about loading linux from dvd

 

Hey:

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 \
  RedHat=/mnt/tmp4/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:

dispatch.skipStep("network")

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

AR

----- Original Message ----
From: John Brussard <jbrussard at netnumber.net>
To: kickstart-list at 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:

 

"CD NOT FOUND

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

 

Here's my ks.cfg file:

 

root at 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

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

text

#Install OS instead of upgrade

install

#Use CDROM installation media

cdrom

#System bootloader configuration

bootloader --location=mbr 

#Partitioning

clearpart --all --drives=sda,sdb

part /boot --fstype ext3 --size=256 --ondisk=sda

part /home --fstype ext3 --size=4096 --ondisk=sda

part /opt/nnmysql/log --fstype ext3 --size=4096 --ondisk=sda

part /opt --fstype ext3 --size=4096 --ondisk=sda

part /var --fstype ext3 --size=4096 --ondisk=sda

part /usr --fstype ext3 --size=4096 --ondisk=sda

part / --fstype ext3 --size=4096 --ondisk=sda

part swap --size=2048 --ondisk=sda

part /backup --fstype ext3 --size=100 --grow --ondisk=sda

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

#Clear the Master Boot Record

#zerombr yes

#System authorization infomation

auth  --useshadow  --enablemd5 

#Firewall configuration

firewall --disabled 

#Do not configure XWindows

skipx

#Package install information

%packages --resolvedeps

@ admin-tools

@ system-tools

@ gnome-desktop

@ dialup

@ compat-arch-support

@ base-x

@ server-cfg

kernel-smp

e2fsprogs

system-config-boot

 

%post

 

My isolinux.cfg file

 

[root at 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 at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20060608/974935c2/attachment.htm>


More information about the Kickstart-list mailing list