Get the pre-release flag from /etc/os-release
Anaconda IsFinal property use to be processed out of ANACONDA_ISFINAL environmental variable. This commit changes this behaviour to use RELEASE_TYPE variable out of /etc/os-release instead.
Resolves: INSTALLER-4068
Also @bcl, isn't the ANACONDA_ISFINAL environment variable used somewhere Lorax / Image Builder?
Also @bcl, isn't the
ANACONDA_ISFINALenvironment variable used somewhere Lorax / Image Builder?
In lorax the --isfinal cmdline switch is used, and it sets IsFinal in the .buildstamp file. It doesn't check the environmental variable or set it. Neither does livemedia-creator.
osbuild-composer operates the same way, setting IsFinal in .buildstamp and has no references to the variable.
Converting this to draft because it has failing unit tests. Please check @elkoniu and when ready undraft the PR.
@KKoukiou I have applied suggested changes
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
I am considering https://github.com/rhinstaller/anaconda/pull/6525 as alternative to this one.
As discussed with @KKoukiou I am dropping this PR as it will be obsolete due to more complex refactoring.