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

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



Title: Message
change the 1,2 line to be 1,2,3,4,5
-----Original Message-----
From: John Brussard [mailto:jbrussard netnumber net]
Sent: Thursday, June 08, 2006 1:41 PM
To: 'Alexander Rau'; 'Discussion list about Kickstart'
Subject: RE: Newbie to kickstart - question about loading linux from dvd

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 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 redhat com [mailto:kickstart-list-bounces 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 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:

 

“CD NOT FOUND

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

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

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

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

 

Thank you for being part of it.

The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system.

EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861.

EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.

EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan.


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