RHEL5 kickstart needs to mount cdrom in postinst
Shabazian, Chip
Chip.Shabazian at bankofamerica.com
Mon May 7 17:35:48 UTC 2007
put:
sleep 99999999
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.
Chip
________________________________
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Martin Steinmann
Sent: Monday, May 07, 2007 10:11 AM
To: kickstart-list at redhat.com
Subject: RHEL5 kickstart needs to mount cdrom in postinst
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.
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.
Does anyone have an idea what could cause this different behavior?
#...Make copy of installation CD to the "/recovery" partition
/sbin/start_udev
mkdir /recovery/linux
mkdir /tempdir
mount /dev/cdrom /tempdir
cp -a /tempdir/* /recovery/linux
cp -a /tempdir/.discinfo /recovery/linux
umount /tempdir
rm -rf /tempdir
--martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070507/84812480/attachment.htm>
More information about the Kickstart-list
mailing list