Re: trying to mount the dvd during post install.

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

 



>From the RedHat Kickstart manual:

Note

"Note that the post-install script is run in a chroot environment; therefore,
performing tasks such as copying scripts or RPMs from the installation media
will not work."

HOWEVER, we were able to "remount" the installation CD (your is DVD), and copy
files from it, using --nochroot.

%post --nochroot --interpreter /mnt/sysimage/bin/bash
#Loading data files
echo "Copying server files....."
mount /tmp/cdrom /mnt/sysimage/mnt
cp -r /mnt/sysimage/mnt/mycdmydir/* /mnt/sysimage/
....
umount /mnt/sysimage/mnt
....

The trick at time was how to know the installation CD was actually is
/tmp/cdrom... (your may be /tmp/dvd). To find out, we had a sleep 600 at the
%post section, and went look around.

Good Luck!
-Lambert Tran





--- John Brussard <jbrussard@xxxxxxxxxxxxx> wrote:

> Hi all,
> 
> After the Kickstart is complete and the %post install is running, I am
> unable to mount the dvd and copy extra files from the dvd to the system.
> 
> The %post makes the /mnt/dvdrom directory but does not mount the /dev/dvd
> and copy the customer files, IT DOES however continue on with the %post.
> 
> Any ideas?
> 
> 
> %post
> groupadd oinstall
> groupadd dba
> .
> .
> .
> mkdir /var/spool/rpms/
> mkdir /mnt/dvdrom
> mount -oro /dev/dvd /mnt/dvdrom
> cp /mnt/dvdrom/custom_files/* /var/spool/rpms/
> chkconfig --del autofs
> chkconfig --del atd
> chkconfig --del anacron
> .
> .
> .
> 
> 
> 
> Thanks in advance for your assistance.
> 
> John 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[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