Can't get files to %include
John Oliver
joliver at john-oliver.net
Thu Apr 19 14:04:39 UTC 2012
On Thu, Apr 19, 2012 at 12:56:50PM +0300, Adrian Cruceru wrote:
> Hi John,
>
> I think you should do all processing regarding %include in %pre,
> anything in %post is too late to change %include statements (system is
> already installed).
>
> Regards,
> Adrian
>
> On 04/17/2012 03:49 PM, John Oliver wrote:
> >RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions
> >But if I first copy setup-questions to /tmp/ks-files/, I can no longer
> >include it. Nor do my %include statements in %post for files I copied
> >to /tmp/ks-files/ work. What's the deal? How the heck do I get
> >includes to work???
Hi, Adrian. I'm not sure what you mean by "it's too late"... it's an
include. I can't include something in %pre that must be done in %post
And that doesn't explain why %include
/mnt/source/isolinux/setup-questions works, but copying setup-questions
to /tmp/ and then %include /tmp/setup-questions does not, even though
/tmp/setup-questions exists, is readable, and contains the exact same
code that works just fine when included from the DVD.
I have several kickstarts, and chunks of code that are common to all of
them. I want to have those common chunks in one place, so when I need
to make a change, I make it in one place and the change will
automatically be seen by all kickstarts. Just in case there's a
question of terminology here.
Thanks.
--
***********************************************************************
* John Oliver http://www.john-oliver.net/ *
* *
***********************************************************************
More information about the Kickstart-list
mailing list