[CentOS] more kickstart - saving %pre decisions for %post

JohnS jses27 at gmail.com
Tue Jan 12 23:00:36 UTC 2010


On Tue, 2010-01-12 at 17:42 -0500, Alan McKay wrote:
> Hey again folks,
> 
> How can I save answers to questions in %pre, for use in %post?
> 
> I'm assuming (though have not yet tried) that variables won't live that long.
> 
> Could I save them off to /tmp in a file, and retrieve them?
> 
> e.g.
> 
> %pre
> echo "VARNAME=$VARNAME" >> /tmp/varfile
> 
> 
> %post
> grep ^VARNAME= /tmp/varile
> 
> 
> Or some such ...
---
Never used %pre or how that part really functions but where is the temp
file stored, ram ?  Why not store it in memory registers or I have your
idea wrong?

John  



More information about the CentOS mailing list