<br><font size=2 face="sans-serif">My shell code in the %post section of
an all-CDROM-contained kickstart does not work the same as it network build.
I'm still troubleshooting, but it appears I have a severly restricted shell
environment during this phase. (Why would it be different from network
install? same code?)  </font>
<br>
<br><font size=2 face="sans-serif">Is it possible the %post section really
does not kick in until after it's first reboot?? If so, that may be the
difference, because I must manually, unmount the virtual CDROM after the
first boot, or it will simply boot from the CDROM again & repeat all
over. However,  I do see the message that says it's doing post installation,
but it's definately not working as expected.  </font>
<br>
<br><font size=2 face="sans-serif">My new RHEL 5.1 32-bit VM is indeed
installed, but with NONE of the post script stuff.</font>
<br>
<br><font size=2 face="sans-serif">I set up some echo statements to help
me troubleshoot...note that it does not create a mount point like I tell
it, and certainly does not copy off script:</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">%post --interpreter /bin/bash</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif">echo "Entering into %POST section"
>> /opt/POST.txt</font>
<br><font size=2 face="sans-serif">#export METHOD=NETWORK</font>
<br><font size=2 face="sans-serif">export METHOD=CDROM</font>
<br><font size=2 face="sans-serif">echo "METHOD=${METHOD}" >>
/opt/POST.txt</font>
<br><font size=2 face="sans-serif">export VER=RHEL5_32</font>
<br><font size=2 face="sans-serif">echo "VERSION=${VER}" >>
/opt/POST.txt</font>
<br><font size=2 face="sans-serif">#####################</font>
<br><font size=2 face="sans-serif">mkdir -p /cdrom</font>
<br><font size=2 face="sans-serif">/bin/mount -t iso96660 -o ro /dev/cdrom
/cdrom</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif">mount >> /opt/POST.txt</font>
<br><font size=2 face="sans-serif">echo "Copy and execute post configure
script." >> /opt/POST.txt</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif">cp /cdrom/third-party/rhel_post.bash
/opt/rhel_post.bash</font>
<br>
<br><font size=2 face="sans-serif">ls -la /opt >> /opt/POST.txt</font>
<br>
<br><font size=2 face="sans-serif">[ -f /opt/rhel_post.bash ] &&
cd /opt;./rhel_post.bash||\</font>
<br><font size=2 face="sans-serif">echo "Trying just copy from third-party...not
/cdrom/third-party" >> /opt/POST.txt</font>
<br>
<br><font size=2 face="sans-serif">cp third-party/rhel_pst.bash /opt/rhel_post.bash</font>
<br>
<br><font size=2 face="sans-serif">ls -al /opt >> /opt/POST.txt</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">What's weird, is that it produced an
/opt/POST.txt?   file and a /opt/POST.txt file:</font>
<br>
<br><font size=2 face="sans-serif">cat POST.txt?</font>
<br>
<br><font size=2 face="sans-serif">Entering into %POST section</font>
<br><font size=2 face="sans-serif">METHOD=CDROM</font>
<br><font size=2 face="sans-serif">VERSION=RHEL5_32</font>
<br><font size=2 face="sans-serif">/dev/root on / type ext3 (ro)</font>
<br><font size=2 face="sans-serif">Copy and execute post configure script.</font>
<br><font size=2 face="sans-serif">total 24</font>
<br><font size=2 face="sans-serif">drwxr-xr-x    2 root  root
  4096 Mar   6 09:19.</font>
<br><font size=2 face="sans-serif">drwxr-xr-x  24 root  root
  4096 Mar   6 09:19..</font>
<br><font size=2 face="sans-serif">-rw-r--r--        1
root  root     121 Mar   6 09:19 POST.txt?</font>
<br>
<br><font size=2 face="sans-serif">total 32</font>
<br><font size=2 face="sans-serif">drwxr-xr-x    2 root  root
  4096 Mar   6 09:19.</font>
<br><font size=2 face="sans-serif">drwxr-xr-x  24 root  root
  4096 Mar   6 09:19..</font>
<br><font size=2 face="sans-serif">-rw-r--r--        1
root  root       61 Mar   6 09:19 POST.txt</font>
<br><font size=2 face="sans-serif">-rw-r--r--        1
root  root     271 Mar   6 09:19 POST.txt?</font>
<br>
<br><font size=2 face="sans-serif">cat POST.txt</font>
<br><font size=2 face="sans-serif">Tyring just copy from third-party..not
/cdrom/third-party</font>
<br>
<br>
<br><font size=2 face="sans-serif">Any ideas?</font>
<br>
<br><font size=2 face="sans-serif">Gene</font>