Fix OS_VARIANT variable setting
authorVitaly Kuznetsov <vitty@altlinux.ru>
Wed, 8 Sep 2010 16:57:45 +0000 (16:57 +0000)
committerIustin Pop <iustin@google.com>
Mon, 13 Sep 2010 11:04:45 +0000 (13:04 +0200)
commita025e5357f52b8be0cb5bf30ea88722005ca1099
tree487a4d9dbe699869aa0c48477c07df9bb2cac24e
parent5117f822177ca0e42f3e2d88dec4061b4cd711b3
Fix OS_VARIANT variable setting

This was introduced in efaa9b06d1e1e6d1678d0edd75b1ba37cf0de3d9.

 in OSCoreEnv:
  inst_os.name is pure operating system name (without variant) as variant is stripped
   in OSFromDisk(). So we always get variant = inst_os.supported_variants[0] (first
   variant in variants list).
  Adding argument os_name with full name (including variant) solves this problem.

Signed-off-by: Vitaly Kuznetsov <vitty@altlinux.ru>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
[modified by iustin to handle the call to OSCoreEnv from ValidateOS too]
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py