Not really a kickstart question.....

Meyers, John J john.j.meyers at boeing.com
Thu Apr 24 20:21:05 UTC 2008


Hi Jake,
 	The attached script is called in the following manner:
As you can see I do network based installs; You can modify to your
favorite method(s).

################## begin ks.cfg #####################
# Kickstart file automatically generated by anaconda.

install
nfs --server=<your server ip>
--dir=/vol/rhel5repo/repodata/yum/RedHat/5Client/x86_64
key <your installation key>
#System  language
lang en_US
keyboard us
#Reboot after installation
reboot
#Use text mode install
text
#Network information
%include /tmp/net.cfg
#XWindows configuration information
skipx
rootpw --iscrypted <omitted>
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc America/Los_Angeles
bootloader --location=mbr --md5pass=<omitted>
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all
part /boot --fstype ext3 --size=100 --asprimary
part / --fstype ext3 --size=32768 --asprimary
part swap --size=4096 --asprimary

%packages
@office
@engineering-and-scientific
@admin-tools
@editors
@system-tools
@gnome-software-development
@text-internet
@x-software-development
@gnome-desktop
@core
@authoring-and-publishing
@base
@java-development
@games
@legacy-software-development
@java
@legacy-software-support
@base-x
@graphics
@printing
@kde-software-development
@kde-desktop
@sound-and-video
@development-libs
@development-tools
@graphical-internet
@workstation
xinetd
system-config-kickstart
kdegames
k3b
vim-X11
emacs
bind
bind-chroot
system-config-bind
dhcp
-nmap
-bluez-hcidump
-isdn4k-utils
-lrzsz
-sysreport
kernel-devel

%pre --interpreter=/bin/sh

#
cd /tmp
wget ftp://<your server ip>/yum/ks/bin/ksnetcfg.py
chmod 777 ksnetcfg.py
/usr/bin/python ksnetcfg.py
#

###################### end ks.cfg ####################

Cheers,
James Meyers


-----Original Message-----
From: Jake Vickers [mailto:jake at v2gnu.com] 
Sent: Thursday, April 24, 2008 5:47 AM
To: Meyers, John J
Subject: Re: Not really a kickstart question.....

Meyers, John J wrote:
>  
> Hi Jake,
>
> 	In the %pre section of the ks file, I run a python script that
is 
> VERY derived from the anaconda network_text.py code. This allows the 
> installer to input the required network info. After which the rest of 
> the install is automated. I can prefill the subnet, ip to last octet, 
> DNS server... If you don't have fancy requirements, you should be able

> to import network_text *, and call the various modules from anaconda 
> to provide netconfig functionality. Yeah Kickstart! And long live yum.
>   

Sorry to be a pain, but would it be possible for me to get a copy of
that python script? Right now I am using the firstboot --enable option
but this is not ideal for me. Especially since it does not allow you to
configure name servers.
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksnetcfg.py
Type: application/octet-stream
Size: 8140 bytes
Desc: ksnetcfg.py
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20080424/fc5171c7/attachment.obj>


More information about the Kickstart-list mailing list