<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.14">
<TITLE>RHEL5 kickstart needs to mount cdrom in postinst</TITLE>
</HEAD>
<BODY>
<!-- 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>