<div dir="ltr">This is pretty niche, and requires some logic not directly supported in apt.<div>You could just create a shell script with the logic in FAI, instead of the package_config.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><br></div>Cheers,<div>Just</div></div></div>
<br><div class="gmail_quote">On 27 April 2018 at 08:18, Steffen Grunewald <span dir="ltr"><<a href="mailto:steffen.grunewald@aei.mpg.de" target="_blank">steffen.grunewald@aei.mpg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2018-04-26 at 21:20:44 +0200, Thomas Lange wrote:<br>
> >>>>> On Thu, 26 Apr 2018 17:34:23 +0200, Steffen Grunewald <<a href="mailto:steffen.grunewald@aei.mpg.de">steffen.grunewald@aei.mpg.de</a>> said:<br>
> <br>
> > Is it possible to specify "a | b" in a package_config file, so that "a"<br>
> > gets installed if available, and "b" otherwise?<br>
> FAI only creates a long list of package names and then calls apt-get,<br>
> aptitude or apt. If one of those tools provides a function like install<br>
> a if available or b otherwise, then FAI cloud use it. FAI itself does<br>
> not have this function yet. Patches are welcome ;-)<br>
<br>
</span>apt-get install "a | b" doesn't work.<br>
<span class=""><br>
> I wonder if any of the config management tools provides such a function?<br>
<br>
</span>Not directly, I'm afraid - but what seems to be feasible is to create a <br>
metapackage that has "a | b" as its only install dependency, and add that<br>
to the package list.<br>
Of course, the primary goal is to fix the underlying problem - which may<br>
take longer than the time I have to come up with a working setup though.<br>
<br>
Thanks,<br>
S<br>
</blockquote></div><br></div>
<br>
<p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px">Notice: This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group. </span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px"> </span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px">If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. </span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px"> </span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px">Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled is a trading name of Marie Claire Beauty Limited, both members of the Ocado Group.</span></font></p><p style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif"><span style="font-size:14.6667px"> </span></font></p><p style="margin:0px;background-color:rgb(255,255,255)"><font color="#aeaaaa" face="Calibri, sans-serif" style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:14.6667px">References to the “Ocado Group” are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is </span></font><font color="#aeaaaa" face="calibri, sans-serif"><span style="font-size:14.6667px">Buildings One & Two, Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL</span></font><span style="font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;color:rgb(174,170,170)"><font face="Calibri, sans-serif">.</font></span></p>