SUSE / suse-migration-services

GNU General Public License v3.0
7 stars 10 forks source link

Enable cli options for pre checks #244

Closed KeithMnemonic closed 2 years ago

KeithMnemonic commented 2 years ago

This PR adds CLI option parsing to suse-migration-pre-checks and also adds a new --fix/-f option to suse-migration-pre-checks. When this option is used, suse-migration-pre-checks will set

'multiversion.kernels = latest,running'

in /etc/zypp/zypp.conf

and also remove all kernels, other than the current running kernel.

In addition, A -t/--target option has been added and is used to run the pre_checks once the migration has been started and the system is running from the migration iso image. With this option, the pre-checks are performed using the pre-migration '/system-root' file structure when determining the zypper configuration, installed kernels, and active kernel of the system that is being migrated.