Package: fai-client
Version: 5.10.3
Severity: wishlist

Dear Maintainer,

When installing files with fcopy, I frequently struggle how to require
multiple classes for a certain file to match, e.g. for a file in
/etc/apt/preferences which I want to install ONLY for a certain debian
version AND a certain hardware architecture.

My solution in these situations is to combine multiple host classes in
the class/*.sh scripts. So, if there is a class ARCH_ARM and a class
BUSTER, the last script in class/ creates a new class BUSTER_ARCH_ARM.

This, however, feels a bit cumbersome. Is there a more elegant
solution for such situations right now? What I don't want to do is
adding conditions in scripts/ as I would then need to use different
file names (which is not always possible).

Maybe, fcopy could also be extended to understand files named
"CLASS1+CLASS2" or similar and only install such files if the host has
both classes CLASS1 and CLASS2 (the file priority could be defined by
the first class in a conjunction with the remaining classes as tie
breaker, so CLASS1+CLASS2 > CLASS1 > CLASS2+CLASS1 > CLASS2 if CLASS1
has a higher priority than CLASS2).

Thanks for any suggestions!

Best,
Maximilian

Reply via email to