Alternatives in package_lists?

Justin Cattle j at ocado.com
Fri Apr 27 09:45:05 CEST 2018


This is pretty niche, and requires some logic not directly supported in apt.
You could just create a shell script with the logic in FAI, instead of the
package_config.




Cheers,
Just

On 27 April 2018 at 08:18, Steffen Grunewald <steffen.grunewald at aei.mpg.de>
wrote:

> On Thu, 2018-04-26 at 21:20:44 +0200, Thomas Lange wrote:
> > >>>>> On Thu, 26 Apr 2018 17:34:23 +0200, Steffen Grunewald <
> steffen.grunewald at aei.mpg.de> said:
> >
> >     > Is it possible to specify "a | b" in a package_config file, so
> that "a"
> >     > gets installed if available, and "b" otherwise?
> > FAI only creates a long list of package names and then calls apt-get,
> > aptitude or apt. If one of those tools provides a function like install
> > a if available or b otherwise, then FAI cloud use it. FAI itself does
> > not have this function yet. Patches are welcome ;-)
>
> apt-get install "a | b" doesn't work.
>
> > I wonder if any of the config management tools provides such a function?
>
> Not directly, I'm afraid - but what seems to be feasible is to create a
> metapackage that has "a | b" as its only install dependency, and add that
> to the package list.
> Of course, the primary goal is to fix the underlying problem - which may
> take longer than the time I have to come up with a working setup though.
>
> Thanks,
>  S
>

-- 


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. 

 

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. 

 

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.

 


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 Buildings One & Two, Trident 
Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20180427/ad0c6b08/attachment.html>


More information about the linux-fai mailing list