Skip to content
Snippets Groups Projects
Commit a025e535 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Iustin Pop
Browse files

Fix OS_VARIANT variable setting


This was introduced in efaa9b06.

 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: default avatarVitaly Kuznetsov <vitty@altlinux.ru>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
[modified by iustin to handle the call to OSCoreEnv from ValidateOS too]
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 5117f822
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment