diff --git a/pyanaconda/core/product.py b/pyanaconda/core/product.py index 1e126438c567..232cfcef8df7 100644 --- a/pyanaconda/core/product.py +++ b/pyanaconda/core/product.py @@ -80,7 +80,17 @@ def get_product_values(): # .buildstamp, environment, stupid last ditch hardcoded defaults. config = configparser.ConfigParser() config.add_section("Main") - config.set("Main", "IsFinal", os.environ.get("ANACONDA_ISFINAL", "false")) + + # Get IsFinal property from /etc/os-release file + with open('/etc/os-release') as file: + for line in file: + key, value = line.split('=') + if key == 'RELEASE_TYPE': + if value == 'release': + config.set("Main", "IsFinal", True) + else: + config.set("Main", "IsFinal", False) + config.set("Main", "Product", os.environ.get("ANACONDA_PRODUCTNAME", "anaconda")) config.set("Main", "Version", os.environ.get("ANACONDA_PRODUCTVERSION", "bluesky"))