cdrom issue

Gerald Waugh gwaugh at frontstreetnetworks.com
Thu Jan 22 16:38:22 UTC 2009


On CentOS4 we mounted the install cdrom in %post
And copied some files over to the hard drive.
This does not work with CentOS5.2

%post --nochroot
# Mount CDROM
/usr/bin/mkdir /mnt/source
# /usr/bin/mount /tmp/cdrom /mnt/source
/usr/bin/mount /dev/cdrom /mnt/source

# Move PKGS Over to /tmp/PKGS
/usr/bin/mkdir /mnt/sysimage/tmp/PKGS
/usr/bin/cp -Rp /mnt/source/PKGS/* /mnt/sysimage/tmp/PKGS >/dev/null
2>&1

# Unmount CDROM
/usr/bin/umount /mnt/source

%post
# Run post install script
/tmp/finish_install.sh



-
Gerald




More information about the Kickstart-list mailing list