Variables in the %include and repo lines
Michael Hayes M
michael.m.hayes at ericsson.com
Fri Apr 20 08:45:44 UTC 2012
Hi Adrian,
I've done that and it's working perfectly.
Thanks for the pointer
Cheers
Mike
________________________________
From: Adrian Cruceru [mailto:crucerua at avaya.com]
Sent: 19 April 2012 08:37
To: kickstart-list at redhat.com
Subject: Re: Variables in the %include and repo lines
Hi Michael,
Why not include generic name:
%include /tmp/repo.txt
%include /tmp/files.txt
and in pre just copy/output to those files
%pre
echo "repo --name ${inst_type} --baseurl=file:///tmp/APP/$<file:///\\tmp\APP\$>{inst_type}/packages" > /tmp/repo.txt
cp /tmp/APP/${inst_type}/${config}/packages.inc /tmp/files.txt
Regards,
Adrian
On 04/11/2012 06:49 PM, Michael Hayes M wrote:
Hi,
Just wondering if anyone can help me here.
I'm writing a modular kickstart. I have a large number of machines to install, but I'm only responsible for the base install, other groups configure their apps etc
So, I've defined a repo as
repo --name ${inst_type} --baseurl=file:///tmp/APP/$<file:///\\tmp\APP\$>{inst_type}/packages
and an include of a package list as
%include /tmp/APP/${inst_type}/${config}/packages.inc
In the %pre section, I source the inst_type and config variables with:
cat /tmp/eric_mnt/kickstart/${HOSTNAME}/${HOSTNAME}_installation_param_details | sed 's/^/export /g' > /tmp/params.cfg
source /tmp/params.cfg
And that works as I use them in the pre section for other things as well.
The problem is that the install just stops, sometime after the pre scripts are run, about when I'd expect it to start installing the base packages, without giving me an error I can understand.
But, if I hard code those variables into the %include and repo lines, the build completes.
Can anyone tell me if variables are not allowed in either the %include or repo lines?
Thanks
Mike
_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com<mailto:Kickstart-list at redhat.com>
https://www.redhat.com/mailman/listinfo/kickstart-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20120420/2965db92/attachment.htm>
More information about the Kickstart-list
mailing list