HI all,
Am stuck at the post installation of the stateless kickstart. As per the
documentation available on the redhat site, the kickstart file should be picked
up and the the stateless client will pick up the snapshot. however it is not
happening so, after the minimal install machine reboots in to the same minimal
install.
am using the default install sript available with the distribution. am unable
to understand as how will the client be able to know about the ldap and what to
query on the new machine (installed using kickstart). or is it that after the
kicstart i have to rsync the machine form the stateless server and then expect
the bahaviour....
It would be great help if anyone can point to what i might be doing wrong.
Thanks in advance
Kamble Ashish
------------------------------------------------------------------------------------------------------------------
#Generated by Kickstart Configurator
#platform=x86, AMD64, or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse genericwheelps/2
#Sytem timezone
timezone Asia/Calcutta
#Root password
rootpw --iscrypted $1$GYGMiHCo$Y8m2lzfHQDfWr/QwBs7Md/
#Reboot after installation
reboot
#Install OS instead of upgrade
install
#Use NFS installation Media
nfs --server=192.168.154 --dir=/var/nfs
#System bootloader configuration
bootloader --location=mbr
#interactive setup
interactive
#Clear the Master Boot Record
#zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 100 --ondisk hda
part /reserve-boot --fstype ext3 --size 100 --ondisk hda
part /reserve-root --fstype ext3 --size 3072 --ondisk hda
part / --fstype ext3 --size 3072 --ondisk hda
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#Do not configure XWindows
skipx
#Package install information
%packages --resolvedeps
rsync
-anacron
-ash
-aspell
-aspell
-aspell-en
-at
-attr
-authconfig
-autofs
-bind-utils
-comps
-crontabs
-dos2unix
-dump
-fbset
-finger
-ftp
-gnupg
-groff
-hesiod
-irda-utils
-isdn4k-utils
-jwhois
-lftp
-lha
-libpcap
-libwvstreams
-logrotate
-logwatch
-lrzsz
-lsof
-mailx
-man
-man-pages
-mdadm
-minicom
-mtr
-mt-st
-nano
-nc
-netconfig
-netdump
-nss_ldap
-ntsysv
-openssh-server
-pam_smb
-parted
-pax
-perl
-perl-Filter
-pinfo
-policy
-policycoreutils
-ppp
-prelink
-psacct
-python-optik
-quota
-rdate
-rdist
-rhnlib
-rmt
-rp-pppoe
-rsh
-schedutils
-sendmail
-slocate
-specspo
-star
-statserial
-stunnel
-sudo
-symlinks
-system-config-mouse
-system-config-network-tui
-system-config-securitylevel-tui
-talk
-tcpdump
-tcsh
-telnet
-time
-traceroute
-unix2dos
-unzip
-up2date
-utempter
-vconfig
-vim-minimal
-vixie-cron
-wget
-wvdial
-ypbind
.-yp-tools
-zip
%post --nochroot --interpreter /usr/bin/python
import os
import re
import sys
import time
### Quick yum hack to install some packages that aren't in rawhide
### yet. This will go away when stateless tools is upstream
try:
# print "Updating to latest versions of packages ... "
# f = open ("/mnt/sysimage/tmp/stateless.yum.conf", "w")
# f.write("""
[main]
assumeyes=1
[stateless]
Name=Stateless Linux
#baseurl=http://devserv.devel.redhat.com/~otaylor/sml
baseurl=nfs:192.168.0.86:/srv/stateless/snapshots/DemoSystem/DemoSystem-2
""")
f.close()
def do_chroot (commands):
quoted = re.sub ("'", "'\\''", commands)
os.system ("chroot /mnt/sysimage sh -c '%s'" % quoted)
do_chroot ("yum -c /tmp/stateless.yum.conf install stateless-client")
### Now launch the real bootstrap
#sys.path.append ('/mnt/sysimage/usr/share/stateless/')
sys.path.append
('nfs:192.168.0.86:/srv/stateless/snapshots/DemoSystem/DemoSystem-2/')
import bootstrap
bootstrap.run('/srv/stateless/snapshots/DemoSysytem/DemoSystem-2/','Stateless')
except:
print 'Failure running bootstrap python script.'
import traceback
import sys
(type, value, tb) = sys.exc_info()
from string import joinfields
list = traceback.format_exception(type, value, tb)
print joinfields(list, "")
time.sleep (300)
sys.exit (1)
### End quick hack
###
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users._______________________________________________
Stateless-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/stateless-list