Re: Post section not running

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

 



Drew Shuller, Net-Sieve, INC wrote:
Hello all,

My kickstart install is ignoring my post section, real simple things like
creating directories, plus a couple rpm -i commands. This section was
working before, but I don't know what might have happened to make it stop
working. I'll post the post section below, to see if anyone can locate any
syntax errors, etc. Thanks in advance, again.

Drew

###post section is run in the chroot environment
%post --nochroot

echo "post section starting"

cd /usr/local
/bin/mkdir /usr/local/net-sieve
cd /usr/local/net-sieve
/bin/mkdir /usr/local/net-sieve/bin
cd /

/usr/sbin/useradd admin
chfn -f 'Admin User' admin
/usr/sbin/usermod -p '$1$Duy.dyuj$Gcm9kN.DkPSIs2ftclBqH1' admin

cd /var/log
/bin/mkdir /var/log/httpd

#install the rpm's in the post section
rpm -i 10.0.0.2/rh/RedHat/RPMS/ns-data_0.4.rpm
rpm -i 10.0.0.2/rh/RedHat/RPMS/net-sieve_0.4.rpm

#this runs a config script
/usr/local/net-sieve/bin/netsieve-config

You should use %post, not %post --chroot. You are creating directories in the install environment, not your system.

Forrest
--





[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