On Thu, 22 Jan 2009, Gerald Waugh wrote:
To: kickstart-list@xxxxxxxxxx From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx> Subject: cdrom issue 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
Hi Gerald. I'm a new user to kickstart so please bear with me.
I managed to mount a seperate working Fedora root partition without using the --nochroot option. I had to make the device node as well. Here is the relevant part of my kickstart file:
Maybe this approach would help with your problem? #--------------------------------------------------- # Packages and groups to install. %packages --nobase @british-support # Needed for mknod. coreutils %end #--------------------------------------------------- # Post installation script. %post --interpreter /bin/bash --log=/root/F10-basic-2.ks-log --erroronfail # Create the /mnt/F8-root directory. mkdir /mnt/F8-root #--------------------------------------------------- # Create the device node for /dev/sda1 drive. mknod /dev/sda1 b 8 1 #--------------------------------------------------- # Mount the F8 root partition. mount -v -t ext3 /dev/sda1 /mnt/F8-root # Delete the existing resolv.conf file. rm -fv /etc/resolv.conf # Copy the working resolv.conf file. cp -v /mnt/F8-root/etc/resolv.conf /etc/resolv.conf # Setup the network. chkconfig --level 2345 network on # Stop the network. /etc/init.d/network stop # Start the network. /etc/init.d/network start # Ping remote host 10 times to test internet connection. ping -c 10 www.grc.com %end HTH Kind Regards, Keith Roberts ----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] ----------------------------------------------------------------- _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list