RHEL5 - copy files from DVD during %post

Bryan Schneiders bschneiders at woti.com
Wed Jan 14 23:42:39 UTC 2009


Where did you put dispatch.skipStep("methodcomplete")?

Mine was just after dispatch.skipStep("network"), or more importantly: not inside any of the "if" blocks in that function.

You could also try commenting out the anaconda.method.ejectCD() line in the doMethodComplete function at the bottom of usr/lib/ananconda/installmethod.py.

Bryan Schneiders
bschneiders at woti.com
301-562-1900 ext 305


John Oliver wrote:
> On Wed, Jan 14, 2009 at 01:49:13PM -0500, Bryan Schneiders wrote:
>> 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.
> 
> I tried this, both with and without the other "fix".  In all cases, the
> DVD is ejecting immediately after controller drivers are loaded.  It
> can't even start to install.  I know it's the stage2.img, because if I
> replace a hacked one with the original, the install will proceed.
> 
> Has anyone made this work?  I could really use the exact steps that will
> result in a DVD that will stay mounted for %post, or a link to that
> stage2.img that I can download.  I'd prefer to know the correct edits
> that I can do myself and wind up with a working image that I can
> reproduce in the future.
> 




More information about the Kickstart-list mailing list