Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i learnt that there is a way where we can automate the installation of redhat using a kickstart script. But everywhere they talk about doing that from bootable floppy image.
i have a single dvd of redhat (RHEL5). Can any one tell how can i kickstart the installation using the kickstart script i,e. where do i place the ks.cfg file on the disk and what command to be given at boot prompt. (kickstart from dvdrom and not from any network).
pls suggest if there are any changes to be done for the above mentioned job.
thanks.
UDAY.
Last edited by udaypratapyati; 02-09-2011 at 03:34 AM.
If you want to include the kickstart file to your DVD, you'll first have to the contents of the DVD (beware of hidden files) to another directory, make your changes, rebuild the image with mkisofs or something like that and then burn that image to DVD. From that point on you'll have a bootable DVD with kickstart. You'll also have to change your isolinux.cfg to point to the kickstart file.
You can find all the information you need at the following site:
You can use the net install iso image to bootstrap a kickstart installation. The way that works for me is to put the kickstart file on an internal http server accessible by the machine that is being setup.
The official documentation is very good and thorough:
Basically you include your script in your DVD (in a directory extra for example) and upon installation you copy the contents of that directory to your harddisk after installation. Then you just call it from your kickstart script. I've sent you one of my kickstart files so you can have a look at it.
Basically you include your script in your DVD (in a directory extra for example) and upon installation you copy the contents of that directory to your harddisk after installation. Then you just call it from your kickstart script. I've sent you one of my kickstart files so you can have a look at it.
Kind regards,
Eric
Sorry i am new to this... couldn't get what i wanted from the script. If you don't mind can u please explain how can copy files from the cdrom to the harddisk and how do i call the script that is included in the "Extra" dir.
this is what i tried in the post section.... (Note: i have not defined any pre section)
Read the script I send you again, you forgot some critical parts, like mounting the cdrom, so it's normal that files aren't copied. You need to mount and then copy. I assure you the ks.cfg I sent you works, but you need to read it carefully, not forgetting or eliminating crucial stuff.
Read the script I send you again, you forgot some critical parts, like mounting the cdrom, so it's normal that files aren't copied. You need to mount and then copy. I assure you the ks.cfg I sent you works, but you need to read it carefully, not forgetting or eliminating crucial stuff.
Kind regards,
Eric
Hi Eric,
Can u pls explain this...
Quote:
# where the root of the new system is mounted
ROOT=/mnt/sysimage
# where we save the source media information (should mathc the "pre" section)
SOURCE_DESC=/tmp/cdrom.ls
i could not get these.... as i don't see anything called cdrom.ls infact in my working system i found /dev/cdrom and /dev/cdrom-hdc present
also pls breif on /mnt/sysimgae stuff....
This will be of great help.
Very easy to do this. You will have to make a new install disc though.
1) To Modify kickstart to install from cdrom make sure this is in command section
# Install from a cdrom
cdrom
2) Go into the .iso file(you will have to unzip it) and modify /isolinux/isolinux.cfg to this:
Change this line: append initrd=initrd.img
to this: append initrd=initrd.img ks=cdrom:/ks.cfg
Put your ks.cfg at the top level of the install disc.
Put your modified .iso on the top level of disc and you're good to go.
Now your kickstart is on the same disc and will install using it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.