FW: %post problem

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

 



Hello

 

Can you help, what is wrong with the %post part???

The kickstart is running well but everything in de %post is not executed.

Any idee???

 

I have created a RedHat 7.1 linux boot disk and I have put the kickstart script on that bootdisk.

 

This is my ks.cfg:

#---------------------------------------------------------------------------------------------------#

#                             URLSNARF KickStart Installation file                 #                                                 

#                                              |                                                    #

#                                          RedHat 7.1                                         #

#---------------------------------------------------------------------------------------------------#

 

#--------------

#Set Language

#--------------

lang en_US

 

#----------------------

#Set keyboard language

#----------------------

keyboard be-latin1

 

#---------------------

#Set mouse being used

#---------------------

mouse generic3ps/2

 

#------------------------------

#Set Network bootp/dhcp/static

#------------------------------

 

#eth0

network --bootproto static --ip 153.112.162.97 --netmask 255.255.252.0 --gateway 153.112.160.12 --device eth0 3C59x

 

#eth1

#network --bootproto static --ip 10.0.0.5 --device eth1 3c59x

 

#-------------------------

#Clear Master Boot Record

#-------------------------

zerombr yes

 

#--------------------------

#Clear existing partitions

#--------------------------

clearpart --all

 

#----------------------

#Create New Partitions

#----------------------

part /boot  --size 35

part swap --size 128

part /  --size 4000 --grow

 

#----------------------------------------

#Make a new installation of RedHat Linux

#----------------------------------------

install

 

#-------------

#Set timezone

#-------------

timezone --utc Europe/Brussels

 

#----------------------------

#Set incrypted root password

#----------------------------

rootpw --iscrypted $1$pfnHAs8Q$IttRZq19FPKfj4WIpSzCH/

 

#--------------------------------------

#Use md5 encryption for user passwords

#--------------------------------------

auth --enablemd5 --useshadow

 

#--------------------------------------------------------

#If present, X is not configured on the installed system

#--------------------------------------------------------

skipx

 

#--------------------------

#Install Lillo boot loader

#--------------------------

lilo --location mbr

 

#--------------------

#Install from CD-Rom

#--------------------

cdrom

 

#-------------------------------------------------

#Here you difine the packages you want to install

#-------------------------------------------------

%packages

 

#@ Networked Workstation

@ Network Server

@ Web Server

 

samba-common

samba-client

samba

telnet

ftp

mc

 

##needed to run linuxconf

linuxconf

linuxconf-devel

gd

libjpeg

 

 

%post

mkdir /var/mario/mario

echo " >> /etc/sysconfig/network-scrips/ifcfg-eth1

 

#Turn services on and off:

/sbin/chkconfig --level 345 telnet on

 

#create root crontab

cat <<EOF >/tmp/crontab.root

# Keep the time up to date

0,15,30,45 * * * * /usr/sbin/ntpdate -s eggtimer 2>&1 >/dev/null

# Recycle Exim log files

1 0 * * * /usr/exim/bin/exicyclog

# Flush the Exim queue

0,15,30,45 * * * * /usr/exim/bin/exim -q

EOF

crontab /tmp/crontab.root

rm /tmp/crontab.root

 

 

I hope you can help.

 

Kind Regards,

Mario


[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