RE: RHEL5 - copy files from DVD during %post

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

 



I may have completely missed the mark with your question, because I
don't have any issues with the following in my kickstart script: 

%post
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
rsync -rv /mnt/cdrom/LL_Extras /root
HOSTNAMETMP=SERVERNAME
cp /mnt/cdrom/ks..tar.gz /root/LL_Extras/.
umount /mnt/cdrom


Basically I use this to copy various saved files, SUN JAVA installs and
so on from my custome DVD I make. By custom, all I do is add ks files,
server saved files and an LL_EXTRAS folders which has a bunch of
installation programs that I need. Right now, that totals about 500MB in
size. 

I don't modify any stage2.img file or make any changes to the standard
RHEL DVD files. I use this in RHEL4.x through 5.2 without issues. 
Regards, 


-----Original Message-----
From: kickstart-list-bounces@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of John Oliver
Sent: Wednesday, January 14, 2009 12:41 PM
To: kickstart-list@xxxxxxxxxx
Subject: RHEL5 - copy files from DVD during %post

So, I've read that anaconda got broke in RHEL5, and it ejects the DVD
too early.  I found a post about creating a new stage2.img with a couple
of lines in dispatch.py swapped which is supposed to fix this.  I did
that, and wound up with a DVD that is ejecting right after the SCSI
drivers load!

I really need to be able to copy files from the DVD during %post  What
is the correct incantation to make this happen?

Thanks...

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


----------------------------------------- This email (including any attachments) is confidential.  If you are not the intended recipient you must not copy, use, disclose, distribute or rely on the information contained in it.  If you have received this email in error, please notify the sender immediately by reply email and delete the email from your system.  Confidentiality and legal privilege attached to this communication are not waived or lost by reason of mistaken delivery to you.  Lend Lease does not guarantee that this email or the attachment(s) are unaffected by computer virus, corruption or other defects.  Lend Lease may monitor incoming and outgoing emails for compliance with its Email Policy.  Please note that our servers may not be located in your country.



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-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