<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 5, 2009, at 11:06 AM, <a href="mailto:chris.ellam@dfs.de">chris.ellam@dfs.de</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font size="2" face="sans-serif">I would like to dynamically generate my include file for the package selection, i.e. this means that it doesnt initially exist and would be generated from my preinstall script. However, it appears that the include file, at least for packages and key, is required to exist prior to the running of the preinstall section. Is there an alternative mechanism for this or a better prefered way of doing this as I many profiles and systems and am trying to use just 1 configuration script which does a Mac address to profile look-up.  It also appears that and include of a key file has similar restrictions, well at least in 5.2.</font> <br> <br></blockquote><div><br></div>How is it not working?  I've used %include to build packages sections before without a problem...</div><div><br></div><div>I generally do it something like this:</div><div><br></div><div><br></div><div># ks.cfg #</div><div>%include /tmp/packages.txt</div><div><br></div><div>%pre</div><div>wget -O /tmp/packages.txt <a href="http://install">http://install</a>-server/ks/packages.txt</div><div><br></div><div><br></div><div># packages.txt #</div><div>%packages</div><div>@core</div><div>@base</div><div>...</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>-- </div><div>Jason Kohles, RHCA RHCDS RHCE</div><div>email@jasonkohles.com - <a href="http://www.jasonkohles.com/">http://www.jasonkohles.com/</a></div><div>"A witty saying proves nothing."  -- Voltaire</div></span></span></div><br class="Apple-interchange-newline"></span> </div><br></body></html>