Re: RHEL5 kickstart needs to mount cdrom in postinst

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Steinmann wrote:
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


Seems to me there's enough people around who want the CD to be available to %post scripts that Anaconda should be keeping the CD mounted a little longer.

I have several systems here, laptops and compact desktops, that cannot pull a CD in; once it's ejected I need to push the tray or CD back in.

I think it's worth a bug report; perhaps you can allege a design fault.

--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx

Please do not reply off-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux