<?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 Re: Kickstart %POST problems. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901090#M65124</link>
    <description>RObert, Thanx I will try that way around as see if it works. What I note of interest, is that you declare the hash pling upfront as if the whole process was a script.</description>
    <pubDate>Tue, 21 Nov 2006 00:23:41 GMT</pubDate>
    <dc:creator>Paul Clayton</dc:creator>
    <dc:date>2006-11-21T00:23:41Z</dc:date>
    <item>
      <title>Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901084#M65118</link>
      <description>I got this problem with the kickstart configuration. IT works well until the %post bit, and then nothing afterwards. I have tried multiple options, but no luck. What I am trying to do is mount an NFS server, then cpio the archive down to recreate the base image of the server.&lt;BR /&gt;Below is my kickstart config file.&lt;BR /&gt;&lt;BR /&gt;#Generated by Kickstart Configurator&lt;BR /&gt;#platform=x86, AMD64, or Intel EM64T&lt;BR /&gt;#System  language&lt;BR /&gt;lang en_US&lt;BR /&gt;#Language modules to install&lt;BR /&gt;langsupport en_US&lt;BR /&gt;#System keyboard&lt;BR /&gt;keyboard us&lt;BR /&gt;#System mouse&lt;BR /&gt;mouse&lt;BR /&gt;#Sytem timezone&lt;BR /&gt;timezone Africa/Johannesburg&lt;BR /&gt;#Root password&lt;BR /&gt;rootpw --iscrypted $1$FkGS4/cU$jalrqQZH8uFOfT0QNk/Lu/&lt;BR /&gt;#Reboot after installation&lt;BR /&gt;reboot&lt;BR /&gt;#Use text mode install&lt;BR /&gt;text&lt;BR /&gt;#Install OS instead of upgrade&lt;BR /&gt;install&lt;BR /&gt;#Use NFS installation Media&lt;BR /&gt;nfs --server=*******.***.******.com  --dir=/data/Redhat/RHEL_4&lt;BR /&gt;#System bootloader configuration&lt;BR /&gt;bootloader --location=mbr&lt;BR /&gt;#Clear the Master Boot Record&lt;BR /&gt;zerombr yes&lt;BR /&gt;#Partition clearing information&lt;BR /&gt;clearpart --all --initlabel&lt;BR /&gt;#Disk partitioning information&lt;BR /&gt;part /boot --fstype ext3 --size 25&lt;BR /&gt;part / --fstype ext3 --size 16958&lt;BR /&gt;part swap --size 448&lt;BR /&gt;#System authorization infomation&lt;BR /&gt;auth  --useshadow  --enablemd5&lt;BR /&gt;#Network information&lt;BR /&gt;Left out for security reasons&lt;BR /&gt;#Firewall configuration&lt;BR /&gt;firewall --disabled&lt;BR /&gt;#SELinux configuration&lt;BR /&gt;#selinux --enforcing&lt;BR /&gt;#Do not configure XWindows&lt;BR /&gt;skipx&lt;BR /&gt;%post&lt;BR /&gt;#/usr/sbin/chroot /mnt/sysimage&lt;BR /&gt;/bin/hostname ranger.cpt.intecbilling.com&lt;BR /&gt;/bin/mkdir /mnt/archmnt&lt;BR /&gt;/bin/mount ****.*****.*****.com:/data/linux/recovery/archives/ranger /mnt/archmnt&lt;BR /&gt;cd /&lt;BR /&gt;/usr/bin/open -s -w -- /bin/cpio -icvt /mnt/archmnt/archive_latest.cpio&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2006 07:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901084#M65118</guid>
      <dc:creator>Paul Clayton</dc:creator>
      <dc:date>2006-11-20T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901085#M65119</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;just my 2 cents :&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt; /mnt/sysimage/cpio-it.sh&lt;BR /&gt;/bin/hostname ranger.cpt.intecbilling.com&lt;BR /&gt;/bin/mkdir /mnt/archmnt&lt;BR /&gt;/bin/mount ****.*****.*****.com:/data/linux/recovery/archives/ranger /mnt/archmnt&lt;BR /&gt;cd /&lt;BR /&gt;/usr/bin/open -s -w -- /bin/cpio -icvt /mnt/archmnt/archive_latest.cpio&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/chroot /mnt/sysimage  cpio-it.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my guess is that your first chroot fork a /bin/sh and then stop.&lt;BR /&gt;&lt;BR /&gt;Jean-Yves Picard&lt;/EOF&gt;</description>
      <pubDate>Mon, 20 Nov 2006 08:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901085#M65119</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-11-20T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901086#M65120</link>
      <description>I did try a basic &lt;BR /&gt;echo "hello" &amp;gt;&amp;gt;/etc/motd&lt;BR /&gt;and nothing at all. It seems to jump this section completely.</description>
      <pubDate>Mon, 20 Nov 2006 08:48:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901086#M65120</guid>
      <dc:creator>Paul Clayton</dc:creator>
      <dc:date>2006-11-20T08:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901087#M65121</link>
      <description>I'm not sure whether you use chroot or comment it out, but I don't use chroot in %post section.&lt;BR /&gt;&lt;BR /&gt;also is ****.*****.*****.com recognizable by the machine on which the kickstart runs,i.e can it access it via hostname,etc.&lt;BR /&gt;Are the NFS permissions allow this host to connect?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2006 09:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901087#M65121</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-11-20T09:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901088#M65122</link>
      <description>Gday,&lt;BR /&gt;&lt;BR /&gt;We have the following this all runs under chroot environment - no need to do or say anything else other than %post assuming your script is a bash one!&lt;BR /&gt;&lt;BR /&gt;%post&lt;BR /&gt;!/bin/bash&lt;BR /&gt;chvt 3&lt;BR /&gt;NFSSERVER=192.168.1.1&lt;BR /&gt;mkdir /nfs&lt;BR /&gt;mount -o ro,nolock -t nfs $NFSSERVER:/data/nfs /nfs&lt;BR /&gt;echo "Starting Post Build Script"&lt;BR /&gt;ksh -x /nfs/buildserver/postbuild.sh "KICKSTART" 3 1 &amp;gt;&amp;gt; /root/postbuild.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;all data is referenced via /nfs an NFS mount point on root. Your NFS server needs a mount point of /data/nfs as *(ro,sync) and all files under it need to be world readable/executable is your going to runs scripts.&lt;BR /&gt;&lt;BR /&gt;The above postbuild does all sorts of stuff including registering to the redhat network depending upon parameter 2 - 3 indicates dont bother, 1 uses are prod rhn user and 2 is an eval one we setup. Parameter 3 sets up hardened systems does more than the generic config.&lt;BR /&gt;&lt;BR /&gt;Hope this helps, we had some problems to start with however now its a dream, the only problem we get is building servers in between firewalls and not at this stage having it down pat as to what ports we need completely open for the build etc.&lt;BR /&gt;&lt;BR /&gt;Robert.</description>
      <pubDate>Mon, 20 Nov 2006 20:43:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901088#M65122</guid>
      <dc:creator>Robert Walker_8</dc:creator>
      <dc:date>2006-11-20T20:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901089#M65123</link>
      <description>Sorry, mucked up !/bin/bash should be #!/bin/bash otherwise should be ok.&lt;BR /&gt;&lt;BR /&gt;Robert.</description>
      <pubDate>Mon, 20 Nov 2006 20:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901089#M65123</guid>
      <dc:creator>Robert Walker_8</dc:creator>
      <dc:date>2006-11-20T20:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901090#M65124</link>
      <description>RObert, Thanx I will try that way around as see if it works. What I note of interest, is that you declare the hash pling upfront as if the whole process was a script.</description>
      <pubDate>Tue, 21 Nov 2006 00:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901090#M65124</guid>
      <dc:creator>Paul Clayton</dc:creator>
      <dc:date>2006-11-21T00:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Kickstart %POST problems.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901091#M65125</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Paul you wrote :&lt;BR /&gt; I did try a basic&lt;BR /&gt;echo "hello" &amp;gt;&amp;gt;/etc/motd&lt;BR /&gt;and nothing at all. It seems to jump this section completely.&lt;BR /&gt;&lt;BR /&gt;in this case, Hello is writen on temporary /etc/motd, which is lost when system reboot.&lt;BR /&gt;&lt;BR /&gt;you should try &lt;BR /&gt;echo hello &amp;gt; /mnt/sysimage/etc/mytest.txt&lt;BR /&gt;&lt;BR /&gt;and to answer Alexander, ****.*****.*****.com ought to be  resolved and have read access since it is used on nfs --server %install part of kickstart.&lt;BR /&gt;&lt;BR /&gt;Jean-Yves</description>
      <pubDate>Tue, 21 Nov 2006 09:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/kickstart-post-problems/m-p/3901091#M65125</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-11-21T09:06:07Z</dc:date>
    </item>
  </channel>
</rss>

