Kickstart Post Commands

Aaron Cline acline2 at cox.net
Tue Apr 20 23:07:05 UTC 2004


Rick Stevens wrote:

> Aaron Cline wrote:
>
>> Hey all:
>>
>> Can I do two areas of %post?
>>
>> I'd like to do '%post --nochroot' to copy some stuff from the 
>> network, and then some '%post' regular to do some driver compiling 
>> and installing.
>>
>> Is this possible?
>
>
> As far as I know, no.  You're only allowed one "%post" in a config file.
>
> To get around it, you could put the commands you want to execute in the
> chrooted environment into a script that's on the target drive.  Then
> you can "%post --nochroot" and do what you want.  At the end, you could
> "chroot /mnt/sysimage /your-chrooted-script" to do your chrooted stuff.
> When that script ends, you're back in the non-chrooted environment. I
> think that'll work--but I've never tried it.
>
> Linux: More ways to skin a cat than you'll ever know!
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
> - VitalStream, Inc.                       http://www.vitalstream.com -
> -                                                                    -
> -           Denial.  It ain't just a river in Egypt anymore!         -
> ----------------------------------------------------------------------
>
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe 


Rick:

Yeah, I kind-of thought I could pull something like that off.  I shall 
have to give it a try.

Thanks,

A Cline






More information about the Redhat-install-list mailing list