<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RHEL5 kickstart needs to mount cdrom in postinst</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2964" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=919583317-07052007><FONT face=Arial 
color=#0000ff size=2>put:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=919583317-07052007><FONT face=Arial 
color=#0000ff size=2>sleep 99999999</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=919583317-07052007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=919583317-07052007><FONT face=Arial 
color=#0000ff size=2>in your %post before you get to that part of your 
kickstart.  Kickstart the box, open a terminal (Alt-F2), chroot to the 
build environment, and try to manually run your commands.  Once you get it 
figured out, simply put those commands back into the 
kickstart.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Chip</FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> kickstart-list-bounces@redhat.com 
[mailto:kickstart-list-bounces@redhat.com] <B>On Behalf Of </B>Martin 
Steinmann<BR><B>Sent:</B> Monday, May 07, 2007 10:11 AM<BR><B>To:</B> 
kickstart-list@redhat.com<BR><B>Subject:</B> RHEL5 kickstart needs to mount 
cdrom in postinst<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>On RHEL4 and FC5 we have the following code in the post install 
section of the ks.cfg file. It mounts the CD the system just installed from and 
copies the CD's content to a recovery partition on HD. In order to be able to 
mount the cdrom, we had to run start_udev.<BR><BR>On RHEL5 this no longer seems 
to work. The ks.cfg post install section executes, but the /recovery/linux 
directory remains empty. It looks like as if it was not able to mount the 
cdrom.<BR><BR>Does anyone have an idea what could cause this different 
behavior?<BR><BR>#...Make copy of installation CD to the "/recovery" 
partition<BR>/sbin/start_udev<BR>mkdir /recovery/linux<BR>mkdir 
/tempdir<BR>mount /dev/cdrom /tempdir<BR>cp -a /tempdir/* /recovery/linux<BR>cp 
-a /tempdir/.discinfo /recovery/linux<BR>umount /tempdir<BR>rm -rf 
/tempdir<BR><BR>--martin<BR></FONT></P></BODY></HTML>