<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Kickstart %post problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problem/m-p/4580262#M39653</link>
    <description>I'm install RHEL5 from a kickstart script that seems to works but aftre the %post section nothing else works.  Not sure what is wrong and need some hlep:  Here's a copy of the script:&lt;BR /&gt;&lt;BR /&gt;# Kickstart file automatically generated by anaconda.&lt;BR /&gt;&lt;BR /&gt;install&lt;BR /&gt;cdrom&lt;BR /&gt;key --skip&lt;BR /&gt;lang en_US.UTF-8&lt;BR /&gt;keyboard us&lt;BR /&gt;xconfig --startxonboot&lt;BR /&gt;network --device eth0 --bootproto static --ip xxx.xxx.xxx.xx --netmask xxx.xxx.xxx.x --gateway xxx.xx.xxx.xx --nameserver xxx.xx.xx.xx,xxx.xx.x.xx --hostname tech1ap1.national.aaa.com&lt;BR /&gt;network --device eth1 --onboot no --bootproto dhcp --hostname xxx.xxx.xxx.com&lt;BR /&gt;rootpw --iscrypted $xxxxxxxxxxxxxxxxxx&lt;BR /&gt;firewall --disabled&lt;BR /&gt;authconfig --enableshadow --enablemd5&lt;BR /&gt;selinux --disabled&lt;BR /&gt;timezone --utc America/New_York&lt;BR /&gt;bootloader --location=mbr --driveorder=cciss/c0d0,cciss/c0d1 --append="rhgb quiet"&lt;BR /&gt;# The following is the partition information you requested&lt;BR /&gt;# Note that any partitions you deleted are not expressed&lt;BR /&gt;# here so unless you clear all partitions first, this is&lt;BR /&gt;# not guaranteed to work&lt;BR /&gt;clearpart --all --initlabel&lt;BR /&gt;part /boot --fstype ext3 --size=100 --ondisk=cciss/c0d0&lt;BR /&gt;part pv.4 --size=139870 --grow --ondisk=cciss/c0d0&lt;BR /&gt;volgroup vg00  --pesize=32768 pv.4&lt;BR /&gt;logvol /tmp --fstype ext3 --name=lvol3 --vgname=vg00 --size=1000&lt;BR /&gt;logvol / --fstype ext3 --name=lvol1 --vgname=vg00 --size=10000&lt;BR /&gt;logvol /home --fstype ext3 --name=lvol2 --vgname=vg00 --size=10000&lt;BR /&gt;logvol /usr --fstype ext3 --name=lvol5 --vgname=vg00 --size=15000&lt;BR /&gt;logvol /opt --fstype ext3 --name=lvol4 --vgname=vg00 --size=5000&lt;BR /&gt;logvol /usr/local --fstype ext3 --name=lvol6 --vgname=vg00 --size=4000&lt;BR /&gt;logvol swap --fstype swap --name=swap --vgname=vg00 --size=10000&lt;BR /&gt;logvol /var --fstype ext3 --name=lvol7 --vgname=vg00 --size=6000&lt;BR /&gt;part pv.200000 --size=71000 --grow --ondisk=cciss/c0d1&lt;BR /&gt;volgroup vg01 --pesize=32768 pv.200000&lt;BR /&gt;logvol /system_backups --fstype ext3 --name=lvol20 --vgname=vg01 --size=49000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%packages&lt;BR /&gt;@admin-tools&lt;BR /&gt;@editors&lt;BR /&gt;@system-tools&lt;BR /&gt;@development-tools&lt;BR /&gt;@gnome-software-development&lt;BR /&gt;@text-internet&lt;BR /&gt;@x-software-development&lt;BR /&gt;@legacy-network-server&lt;BR /&gt;@gnome-desktop&lt;BR /&gt;@core&lt;BR /&gt;@base&lt;BR /&gt;@network-server&lt;BR /&gt;@legacy-software-development&lt;BR /&gt;@java&lt;BR /&gt;@java-development&lt;BR /&gt;@legacy-software-support&lt;BR /&gt;@base-x&lt;BR /&gt;@graphics&lt;BR /&gt;@web-server&lt;BR /&gt;@printing&lt;BR /&gt;@kde-software-development&lt;BR /&gt;@kde-desktop&lt;BR /&gt;@mail-server&lt;BR /&gt;@server-cfg&lt;BR /&gt;@development-libs&lt;BR /&gt;@news-server&lt;BR /&gt;@graphical-internet&lt;BR /&gt;system-config-kickstart&lt;BR /&gt;emacs&lt;BR /&gt;vim-X11&lt;BR /&gt;arpwatch&lt;BR /&gt;adjtimex&lt;BR /&gt;rdesktop&lt;BR /&gt;watchdog&lt;BR /&gt;wireshark-gnome&lt;BR /&gt;tsclient&lt;BR /&gt;x3270&lt;BR /&gt;am-utils&lt;BR /&gt;audit&lt;BR /&gt;amanda-client&lt;BR /&gt;sysstat&lt;BR /&gt;dejagnu&lt;BR /&gt;imake&lt;BR /&gt;expect&lt;BR /&gt;xorg-x11-xbitmaps&lt;BR /&gt;mesa-libGLU-devel&lt;BR /&gt;xorg-x11-server-sdk&lt;BR /&gt;gconf-editor&lt;BR /&gt;hal-gnome&lt;BR /&gt;aide&lt;BR /&gt;kexec-tools&lt;BR /&gt;nfs4-acl-tools&lt;BR /&gt;x86info&lt;BR /&gt;device-mapper-multipath&lt;BR /&gt;cpufreq-utils&lt;BR /&gt;amanda-server&lt;BR /&gt;vnc-server&lt;BR /&gt;krb5-server&lt;BR /&gt;gtk+&lt;BR /&gt;qt4&lt;BR /&gt;compat-openldap&lt;BR /&gt;compat-slang&lt;BR /&gt;xorg-x11-utils&lt;BR /&gt;xorg-x11-server-Xnest&lt;BR /&gt;xorg-x11-server-Xvfb&lt;BR /&gt;libsane-hpaio&lt;BR /&gt;tomcat5-webapps&lt;BR /&gt;tomcat5&lt;BR /&gt;kdeadmin&lt;BR /&gt;perl-libxml-perl&lt;BR /&gt;perl-XML-SAX&lt;BR /&gt;perl-LDAP&lt;BR /&gt;perl-Convert-ASN1&lt;BR /&gt;perl-DateManip&lt;BR /&gt;perl-XML-Twig&lt;BR /&gt;perl-XML-Grove&lt;BR /&gt;perl-XML-Dumper&lt;BR /&gt;perl-Crypt-SSLeay&lt;BR /&gt;perl-Mozilla-LDAP&lt;BR /&gt;perl-TimeDate&lt;BR /&gt;perl-XML-NamespaceSupport&lt;BR /&gt;kdewebdev&lt;BR /&gt;mutt&lt;BR /&gt;-rwho&lt;BR /&gt;-rusers&lt;BR /&gt;-sysreport&lt;BR /&gt;-bluez-utils&lt;BR /&gt;-tux&lt;BR /&gt;-dovecot&lt;BR /&gt;compat-libstdc++-33&lt;BR /&gt;&lt;BR /&gt;%post --nochroot&lt;BR /&gt;SudoersFile="/etc/sudoers"&lt;BR /&gt;SSHFile="/etc/ssh/sshd_config"&lt;BR /&gt;SysAuthFile="/etc/pam.d/system-auth"&lt;BR /&gt;HostsFile="/etc/hosts"&lt;BR /&gt;AliasesFile="/etc/aliases"&lt;BR /&gt;SendmailCf="/etc/mail/sendmail.cf"&lt;BR /&gt;YumFile="/etc/yum/yum-updatesd.conf"&lt;BR /&gt;RCLocalFile="/etc/rc.local"&lt;BR /&gt;NTPConfFile="/etc/ntp.conf"&lt;BR /&gt;SysctlFile="/etc/sysctl.conf"&lt;BR /&gt;Profile="/etc/profile"&lt;BR /&gt;TextFile="/mnt/sysimage/root/ks-install.txt&lt;BR /&gt;&lt;BR /&gt;echo "Kickstart `date`" &amp;gt;$TextFile&lt;BR /&gt;echo 'echo "0" &amp;gt; /proc/sys/kernel/core_uses_pid' &amp;gt;&amp;gt; $RCLocalFile&lt;BR /&gt;sed -i -e 's/^ulimit -S -c 0.+/ulimit -c 5000000/g' $Profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo “Adding groups and users..."&lt;BR /&gt;/usr/sbin/groupadd -g 500 sudoers&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxxxxxxx' -g users -s /bin/ksh -G wheel,sudoers -d /home/john -m -u 7000 john&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxxxxxx.' -g users -s /bin/ksh -G wheel,sudoers -d /home/doe -m -u 7001 doe&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxx' -g users -s /bin/ksh -d /home/ham -m -u 9033 ham&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxx' -g users -s /bin/ksh -d /home/sam -m -u 9003 sam&lt;BR /&gt;echo "Adding some productivity enhancements for root..."&lt;BR /&gt;echo "export HISTSIZE=10000" &amp;gt;&amp;gt; /root/.bash_profile&lt;BR /&gt;echo "alias grep='grep --color'" &amp;gt;&amp;gt; /root/.bash_profile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sudoers..."&lt;BR /&gt;sed -i -r -e 's/^rh/\# rh/g' $SudoersFile&lt;BR /&gt;echo '&lt;BR /&gt;%wheel          ALL=(ALL)       ALL&lt;BR /&gt;%sudoers        ALL=(ALL)       ALL&lt;BR /&gt;tomcat2         ALL=(ALL)       NOPASSWD:/usr/sbin/lsof' &amp;gt;&amp;gt; $SudoersFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sshd config..."&lt;BR /&gt;sed -i -r -e 's/^\#PermitEmptyPasswords no/PermitEmptyPasswords no/g' -e 's/^GSSAPIAuthentication yes/GSSAPIAuthentication no/g' -e 's/^\#KerberosAuthentication no/KerberosAuthentication no/g' $SSHFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating system auth for account lockout policy..."&lt;BR /&gt;sed -i -r -e 's/auth.+required.+pam_env.so/auth        required      pam_env.so\&lt;BR /&gt;auth        required      pam_tally.so onerr=fail deny=5 even_deny_root_account\&lt;BR /&gt;account     required      pam_tally.so/g' $SysAuthFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sendmail configuration (setting relay)..."&lt;BR /&gt;sed -i -r -e 's/^DS/DSclbsrv.national.aaa.com/g' $SendmailCf&lt;BR /&gt;&lt;BR /&gt;echo "Setting kernel params..."&lt;BR /&gt;echo 'fs.file-max = 8192' &amp;gt;&amp;gt; $SysctlFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating hosts file..."&lt;BR /&gt;echo '&lt;BR /&gt;127.0.0.1       localhost.localdomain localhost&lt;BR /&gt;::1             localhost6.localdomain6 localhost6&lt;BR /&gt;&lt;BR /&gt;xxx.xx.xx.xxx   abc.dcf.com        abc&lt;BR /&gt;xxx.xx.xx.xxx   ghi.jkl.com        ghi&lt;BR /&gt;&lt;BR /&gt;' &amp;gt; $HostsFile&lt;BR /&gt;&lt;BR /&gt;echo "Setting up ntp for the local time server..."&lt;BR /&gt;sed -i -r -e 's/^server.+rhel.+/\#server/g' $NTPConfFile&lt;BR /&gt;echo 'server 143.61.249.68' &amp;gt;&amp;gt; $NTPConfFile&lt;BR /&gt;/sbin/chkconfig --levels 345 ntpd on&lt;BR /&gt;&lt;BR /&gt;echo "Changing ownership of /home/cat "&lt;BR /&gt;chown -R root:root /cat&lt;BR /&gt;chmod -R 775 /home/cat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Feb 2010 19:57:38 GMT</pubDate>
    <dc:creator>Ray Bell</dc:creator>
    <dc:date>2010-02-08T19:57:38Z</dc:date>
    <item>
      <title>Kickstart %post problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problem/m-p/4580262#M39653</link>
      <description>I'm install RHEL5 from a kickstart script that seems to works but aftre the %post section nothing else works.  Not sure what is wrong and need some hlep:  Here's a copy of the script:&lt;BR /&gt;&lt;BR /&gt;# Kickstart file automatically generated by anaconda.&lt;BR /&gt;&lt;BR /&gt;install&lt;BR /&gt;cdrom&lt;BR /&gt;key --skip&lt;BR /&gt;lang en_US.UTF-8&lt;BR /&gt;keyboard us&lt;BR /&gt;xconfig --startxonboot&lt;BR /&gt;network --device eth0 --bootproto static --ip xxx.xxx.xxx.xx --netmask xxx.xxx.xxx.x --gateway xxx.xx.xxx.xx --nameserver xxx.xx.xx.xx,xxx.xx.x.xx --hostname tech1ap1.national.aaa.com&lt;BR /&gt;network --device eth1 --onboot no --bootproto dhcp --hostname xxx.xxx.xxx.com&lt;BR /&gt;rootpw --iscrypted $xxxxxxxxxxxxxxxxxx&lt;BR /&gt;firewall --disabled&lt;BR /&gt;authconfig --enableshadow --enablemd5&lt;BR /&gt;selinux --disabled&lt;BR /&gt;timezone --utc America/New_York&lt;BR /&gt;bootloader --location=mbr --driveorder=cciss/c0d0,cciss/c0d1 --append="rhgb quiet"&lt;BR /&gt;# The following is the partition information you requested&lt;BR /&gt;# Note that any partitions you deleted are not expressed&lt;BR /&gt;# here so unless you clear all partitions first, this is&lt;BR /&gt;# not guaranteed to work&lt;BR /&gt;clearpart --all --initlabel&lt;BR /&gt;part /boot --fstype ext3 --size=100 --ondisk=cciss/c0d0&lt;BR /&gt;part pv.4 --size=139870 --grow --ondisk=cciss/c0d0&lt;BR /&gt;volgroup vg00  --pesize=32768 pv.4&lt;BR /&gt;logvol /tmp --fstype ext3 --name=lvol3 --vgname=vg00 --size=1000&lt;BR /&gt;logvol / --fstype ext3 --name=lvol1 --vgname=vg00 --size=10000&lt;BR /&gt;logvol /home --fstype ext3 --name=lvol2 --vgname=vg00 --size=10000&lt;BR /&gt;logvol /usr --fstype ext3 --name=lvol5 --vgname=vg00 --size=15000&lt;BR /&gt;logvol /opt --fstype ext3 --name=lvol4 --vgname=vg00 --size=5000&lt;BR /&gt;logvol /usr/local --fstype ext3 --name=lvol6 --vgname=vg00 --size=4000&lt;BR /&gt;logvol swap --fstype swap --name=swap --vgname=vg00 --size=10000&lt;BR /&gt;logvol /var --fstype ext3 --name=lvol7 --vgname=vg00 --size=6000&lt;BR /&gt;part pv.200000 --size=71000 --grow --ondisk=cciss/c0d1&lt;BR /&gt;volgroup vg01 --pesize=32768 pv.200000&lt;BR /&gt;logvol /system_backups --fstype ext3 --name=lvol20 --vgname=vg01 --size=49000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%packages&lt;BR /&gt;@admin-tools&lt;BR /&gt;@editors&lt;BR /&gt;@system-tools&lt;BR /&gt;@development-tools&lt;BR /&gt;@gnome-software-development&lt;BR /&gt;@text-internet&lt;BR /&gt;@x-software-development&lt;BR /&gt;@legacy-network-server&lt;BR /&gt;@gnome-desktop&lt;BR /&gt;@core&lt;BR /&gt;@base&lt;BR /&gt;@network-server&lt;BR /&gt;@legacy-software-development&lt;BR /&gt;@java&lt;BR /&gt;@java-development&lt;BR /&gt;@legacy-software-support&lt;BR /&gt;@base-x&lt;BR /&gt;@graphics&lt;BR /&gt;@web-server&lt;BR /&gt;@printing&lt;BR /&gt;@kde-software-development&lt;BR /&gt;@kde-desktop&lt;BR /&gt;@mail-server&lt;BR /&gt;@server-cfg&lt;BR /&gt;@development-libs&lt;BR /&gt;@news-server&lt;BR /&gt;@graphical-internet&lt;BR /&gt;system-config-kickstart&lt;BR /&gt;emacs&lt;BR /&gt;vim-X11&lt;BR /&gt;arpwatch&lt;BR /&gt;adjtimex&lt;BR /&gt;rdesktop&lt;BR /&gt;watchdog&lt;BR /&gt;wireshark-gnome&lt;BR /&gt;tsclient&lt;BR /&gt;x3270&lt;BR /&gt;am-utils&lt;BR /&gt;audit&lt;BR /&gt;amanda-client&lt;BR /&gt;sysstat&lt;BR /&gt;dejagnu&lt;BR /&gt;imake&lt;BR /&gt;expect&lt;BR /&gt;xorg-x11-xbitmaps&lt;BR /&gt;mesa-libGLU-devel&lt;BR /&gt;xorg-x11-server-sdk&lt;BR /&gt;gconf-editor&lt;BR /&gt;hal-gnome&lt;BR /&gt;aide&lt;BR /&gt;kexec-tools&lt;BR /&gt;nfs4-acl-tools&lt;BR /&gt;x86info&lt;BR /&gt;device-mapper-multipath&lt;BR /&gt;cpufreq-utils&lt;BR /&gt;amanda-server&lt;BR /&gt;vnc-server&lt;BR /&gt;krb5-server&lt;BR /&gt;gtk+&lt;BR /&gt;qt4&lt;BR /&gt;compat-openldap&lt;BR /&gt;compat-slang&lt;BR /&gt;xorg-x11-utils&lt;BR /&gt;xorg-x11-server-Xnest&lt;BR /&gt;xorg-x11-server-Xvfb&lt;BR /&gt;libsane-hpaio&lt;BR /&gt;tomcat5-webapps&lt;BR /&gt;tomcat5&lt;BR /&gt;kdeadmin&lt;BR /&gt;perl-libxml-perl&lt;BR /&gt;perl-XML-SAX&lt;BR /&gt;perl-LDAP&lt;BR /&gt;perl-Convert-ASN1&lt;BR /&gt;perl-DateManip&lt;BR /&gt;perl-XML-Twig&lt;BR /&gt;perl-XML-Grove&lt;BR /&gt;perl-XML-Dumper&lt;BR /&gt;perl-Crypt-SSLeay&lt;BR /&gt;perl-Mozilla-LDAP&lt;BR /&gt;perl-TimeDate&lt;BR /&gt;perl-XML-NamespaceSupport&lt;BR /&gt;kdewebdev&lt;BR /&gt;mutt&lt;BR /&gt;-rwho&lt;BR /&gt;-rusers&lt;BR /&gt;-sysreport&lt;BR /&gt;-bluez-utils&lt;BR /&gt;-tux&lt;BR /&gt;-dovecot&lt;BR /&gt;compat-libstdc++-33&lt;BR /&gt;&lt;BR /&gt;%post --nochroot&lt;BR /&gt;SudoersFile="/etc/sudoers"&lt;BR /&gt;SSHFile="/etc/ssh/sshd_config"&lt;BR /&gt;SysAuthFile="/etc/pam.d/system-auth"&lt;BR /&gt;HostsFile="/etc/hosts"&lt;BR /&gt;AliasesFile="/etc/aliases"&lt;BR /&gt;SendmailCf="/etc/mail/sendmail.cf"&lt;BR /&gt;YumFile="/etc/yum/yum-updatesd.conf"&lt;BR /&gt;RCLocalFile="/etc/rc.local"&lt;BR /&gt;NTPConfFile="/etc/ntp.conf"&lt;BR /&gt;SysctlFile="/etc/sysctl.conf"&lt;BR /&gt;Profile="/etc/profile"&lt;BR /&gt;TextFile="/mnt/sysimage/root/ks-install.txt&lt;BR /&gt;&lt;BR /&gt;echo "Kickstart `date`" &amp;gt;$TextFile&lt;BR /&gt;echo 'echo "0" &amp;gt; /proc/sys/kernel/core_uses_pid' &amp;gt;&amp;gt; $RCLocalFile&lt;BR /&gt;sed -i -e 's/^ulimit -S -c 0.+/ulimit -c 5000000/g' $Profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo “Adding groups and users..."&lt;BR /&gt;/usr/sbin/groupadd -g 500 sudoers&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxxxxxxx' -g users -s /bin/ksh -G wheel,sudoers -d /home/john -m -u 7000 john&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxxxxxx.' -g users -s /bin/ksh -G wheel,sudoers -d /home/doe -m -u 7001 doe&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxx' -g users -s /bin/ksh -d /home/ham -m -u 9033 ham&lt;BR /&gt;/usr/sbin/useradd -p 'xxxxx' -g users -s /bin/ksh -d /home/sam -m -u 9003 sam&lt;BR /&gt;echo "Adding some productivity enhancements for root..."&lt;BR /&gt;echo "export HISTSIZE=10000" &amp;gt;&amp;gt; /root/.bash_profile&lt;BR /&gt;echo "alias grep='grep --color'" &amp;gt;&amp;gt; /root/.bash_profile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sudoers..."&lt;BR /&gt;sed -i -r -e 's/^rh/\# rh/g' $SudoersFile&lt;BR /&gt;echo '&lt;BR /&gt;%wheel          ALL=(ALL)       ALL&lt;BR /&gt;%sudoers        ALL=(ALL)       ALL&lt;BR /&gt;tomcat2         ALL=(ALL)       NOPASSWD:/usr/sbin/lsof' &amp;gt;&amp;gt; $SudoersFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sshd config..."&lt;BR /&gt;sed -i -r -e 's/^\#PermitEmptyPasswords no/PermitEmptyPasswords no/g' -e 's/^GSSAPIAuthentication yes/GSSAPIAuthentication no/g' -e 's/^\#KerberosAuthentication no/KerberosAuthentication no/g' $SSHFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating system auth for account lockout policy..."&lt;BR /&gt;sed -i -r -e 's/auth.+required.+pam_env.so/auth        required      pam_env.so\&lt;BR /&gt;auth        required      pam_tally.so onerr=fail deny=5 even_deny_root_account\&lt;BR /&gt;account     required      pam_tally.so/g' $SysAuthFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating sendmail configuration (setting relay)..."&lt;BR /&gt;sed -i -r -e 's/^DS/DSclbsrv.national.aaa.com/g' $SendmailCf&lt;BR /&gt;&lt;BR /&gt;echo "Setting kernel params..."&lt;BR /&gt;echo 'fs.file-max = 8192' &amp;gt;&amp;gt; $SysctlFile&lt;BR /&gt;&lt;BR /&gt;echo "Updating hosts file..."&lt;BR /&gt;echo '&lt;BR /&gt;127.0.0.1       localhost.localdomain localhost&lt;BR /&gt;::1             localhost6.localdomain6 localhost6&lt;BR /&gt;&lt;BR /&gt;xxx.xx.xx.xxx   abc.dcf.com        abc&lt;BR /&gt;xxx.xx.xx.xxx   ghi.jkl.com        ghi&lt;BR /&gt;&lt;BR /&gt;' &amp;gt; $HostsFile&lt;BR /&gt;&lt;BR /&gt;echo "Setting up ntp for the local time server..."&lt;BR /&gt;sed -i -r -e 's/^server.+rhel.+/\#server/g' $NTPConfFile&lt;BR /&gt;echo 'server 143.61.249.68' &amp;gt;&amp;gt; $NTPConfFile&lt;BR /&gt;/sbin/chkconfig --levels 345 ntpd on&lt;BR /&gt;&lt;BR /&gt;echo "Changing ownership of /home/cat "&lt;BR /&gt;chown -R root:root /cat&lt;BR /&gt;chmod -R 775 /home/cat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Feb 2010 19:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problem/m-p/4580262#M39653</guid>
      <dc:creator>Ray Bell</dc:creator>
      <dc:date>2010-02-08T19:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %post problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problem/m-p/4580263#M39654</link>
      <description>You're using "%post --nochroot".&lt;BR /&gt;&lt;BR /&gt;When you use the --nochroot option, your post-installation script is executed in the installer environment. For example, when you add lines to "/etc/rc.local", they won't be added to the /etc/rc.local of the freshly-installed OS - they will be added to the /etc/rc.local of the _installer environment_ which is located on a RAM-based filesystem and will go away once the system is rebooted.&lt;BR /&gt;&lt;BR /&gt;If you need to use "--nochroot" option, your script must be aware that the entire new OS is located at /mnt/sysimage - i.e. use /mnt/sysimage/etc instead of /etc, and so on. &lt;BR /&gt;&lt;BR /&gt;The use of tools like chkconfig will be much more complicated with the --nochroot option. Instead of &lt;BR /&gt;&lt;BR /&gt;/sbin/chkconfig --levels 345 ntpd on&lt;BR /&gt;&lt;BR /&gt;you must do:&lt;BR /&gt;&lt;BR /&gt;chroot /mnt/sysimage /sbin/chkconfig --levels 345 ntpd on&lt;BR /&gt;&lt;BR /&gt;Otherwise the chkconfig tool will modify the /etc/rc*.d directories of the installation environment, which may fail because the installation environment does not have all the things the real system has. Even if chkconfig is successful, your changes will be lost as the system is rebooted.&lt;BR /&gt;&lt;BR /&gt;As far as I can see, your installation script does not actually require the --nochroot option and seems to be mostly designed to work without it.&lt;BR /&gt;&lt;BR /&gt;So, I recommend that you make two changes:&lt;BR /&gt;1.) change the TextFile variable to:&lt;BR /&gt;&lt;BR /&gt;TextFile="/root/ks-install.txt"&lt;BR /&gt;&lt;BR /&gt;2.) change "%post --nochroot" to a simple "%post".&lt;BR /&gt;&lt;BR /&gt;For more information, please see:&lt;BR /&gt;&lt;A href="https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-postinstallconfig.html" target="_blank"&gt;https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-postinstallconfig.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 08 Feb 2010 21:09:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problem/m-p/4580263#M39654</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-02-08T21:09:12Z</dc:date>
    </item>
  </channel>
</rss>

