Lock package versions after installation
In foreman-maintain there will be feature for version locking of Foreman packages to protect against unwanted upgrades of Foreman during system update.
Foreman-installer should be able to lock the packages automatically immediately after the installation to minimize manual steps during installation.
Foreman-installer should be able to check if the packages are locked and warn the user eventually offer to run unlock on its own.
Fixes #26409 - Locking packages after installation
This patch add a new option --[no-]lock-packages-versions.
The option enables/disables version locking of installed packages.
Once used the choice is stored in the scenario "custom" hash and
is reused in the following installer runs.
If the packages are locked when the installer starts
unlock is performed before installer proceed with the installation.