Support os variants
authorGuido Trotter <ultrotter@google.com>
Fri, 7 Aug 2009 13:01:16 +0000 (14:01 +0100)
committerGuido Trotter <ultrotter@google.com>
Sat, 8 Aug 2009 09:26:48 +0000 (10:26 +0100)
commit455c48a4cb1e95f24a89c18e6607bdaefddbc2a1
treec5a9f994263b103e09822401681cb3826d904197
parentad6f95d2b6b9c0283aaded610c5e53794782625b
Support os variants

This is a Ganeti 2.1 design feature. It's not implemented yet in 2.1,
but its implementation in the debootstrap OS is totally backwards
compatible. If no OS_VARIANT environment variable is passed in,
everything proceeds as before, otherwise a instance-deboostrap tries
to load a config file from a specially configured directory, which can
be used to override any variable in the defaults file (which is sourced
at the beginning as it was before.

By default only the "default" variant is exported, which is shipped as
an empty config file.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Makefile.am
common.sh.in
variants.list [new file with mode: 0644]