Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add leap to sle tech preview with yast2 migration #14770

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/migration/online_migration/pre_migration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ sub check_or_install_packages {
record_soft_failure('bsc#1197268', 'suseconnect-ng obsoletes zypper-migration-plugin in leap to sle migration');
zypper_call('rm zypper-migration-plugin');
zypper_call "in yast2-registration rollback-helper";
if (get_var('LEAP_TECH_PREVIEW_REPO')) {
record_info('SLE-23610', 'TechPreview: yast-migration-sle a simplified Leap -> SLE migration');
my $tech_preview_repo = get_var('LEAP_TECH_PREVIEW_REPO');
zypper_call("ar $tech_preview_repo");
zypper_call('in yast2-migration-sle');
}
systemctl 'enable rollback.service';
systemctl 'start rollback.service';
} else {
Expand Down
3 changes: 2 additions & 1 deletion tests/migration/online_migration/yast2_migration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ sub run {
zypper_call "rs $service{$addon}\t"; # remove service
}

script_run("yast2 migration; echo yast2-migration-done-\$? > /dev/$serialdev", 0);
my $migration_cmd = get_var('LEAP_TECH_PREVIEW_REPO') ? 'migration_sle' : 'migration';
script_run("yast2 $migration_cmd; echo yast2-migration-done-\$? > /dev/$serialdev", 0);

# yast2 migration would check and install minimal update before migration
# if the system doesn't perform full update or minimal update
Expand Down