RE: Not really a kickstart question.....

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

 



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@xxxxxxxxx] 
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!

Attachment: ksnetcfg.py
Description: ksnetcfg.py

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux