RHEL5 - copy files from DVD during %post

Bryan Schneiders bschneiders at woti.com
Wed Jan 14 18:49:13 UTC 2009


I worked around this in the past by modifying usr/lib/anaconda/kickstart.py in the stage2.img and adding dispatch.skipStep("methodcomplete") to the list in the setSteps function.

I think I tried the other patch you mentioned only to run into the cdrom device or mount point being deleted before %post.  I have the skipStep method written down in my notes so I believe that's what I settled on.

Bryan Schneiders

John Oliver wrote:
> On Wed, Jan 14, 2009 at 09:46:58AM -0800, Shabazian, Chip wrote:
>> How big are the files?  If they are small enough, you can use an old
>> workaround I had to use a long time ago where you create a ram drive,
>> copy the files there in the %pre, then you can mount and access that ram
>> drive in the %post.
> 
> Far too big for that :-)
> 
> Someone has offered to send me a patched image, but... this has been
> known about for 18 months now.  In Bugzilla, a fix is promised in 5.2, but
> that never happened, and nobody at Red Hat has updated since.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=239002
> 
> Very frustrating.
> 




More information about the Kickstart-list mailing list