Skip to content

Commit

Permalink
Set proxySCC for offline media
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-suse committed Mar 6, 2025
1 parent 0959880 commit d3aee86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/registration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,9 @@ sub registration_bootloader_params {
my ($max_interval) = @_; # see 'type_string'
$max_interval //= 13;
my @params;
push @params, split ' ', registration_bootloader_cmdline;
if (get_var('SCC_URL') ne 'none') {
push @params, split ' ', registration_bootloader_cmdline;
}
type_string "@params", $max_interval;
save_screenshot;
return @params;
Expand Down
4 changes: 3 additions & 1 deletion tests/installation/bootloader_s390.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ sub prepare_parmfile {

$params .= specific_bootmenu_params;
unless (get_var("AGAMA")) {
$params .= registration_bootloader_cmdline if check_var('SCC_REGISTER', 'installation');
if (get_var('SCC_URL') ne 'none') {
$params .= registration_bootloader_cmdline if check_var('SCC_REGISTER', 'installation');
}
}

# Pass autoyast parameter for s390x, shorten the url because of 72 columns limit in x3270 xedit
Expand Down
4 changes: 3 additions & 1 deletion tests/installation/bootloader_zkvm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ sub set_svirt_domain_elements {
$cmdline .= ' ' . get_var("EXTRABOOTPARAMS") if get_var("EXTRABOOTPARAMS");
# inst.auto and inst.install_url are defined in 'specific_bootmenu_params'
$cmdline .= specific_bootmenu_params;
$cmdline .= registration_bootloader_cmdline if check_var('SCC_REGISTER', 'installation') && !get_var('NTLM_AUTH_INSTALL');
if (get_var('SCC_URL') ne 'none') {
$cmdline .= registration_bootloader_cmdline if check_var('SCC_REGISTER', 'installation') && !get_var('NTLM_AUTH_INSTALL');
}

$svirt->change_domain_element(os => initrd => "$zkvm_img_path/$name.initrd");
$svirt->change_domain_element(os => kernel => "$zkvm_img_path/$name.kernel");
Expand Down

0 comments on commit d3aee86

Please sign in to comment.