@@ -794,8 +794,10 @@ sub debian_overlays ($) {
$func->('overlay', 'overlay.tar');
}
-sub preseed_base ($$$$;@) {
- my ($ho,$suite,$sfx,$extra_packages,%xopts) = @_;
+sub preseed_base ($$$;@) {
+ my ($ho,$sfx,$extra_packages,%xopts) = @_;
+
+ my $suite = $ho->{Suite};
$xopts{ExtraPreseed} ||= '';
@@ -927,7 +929,7 @@ END
sub preseed_create_guest ($$$;@) {
my ($ho, $arch, $sfx, %xopts) = @_;
- my $suite= $xopts{Suite} || $c{DebianSuite};
+ my $suite= debian_guest_suite($ho);
my $extra_packages = "";
if ($xopts{PvMenuLst}) {
@@ -962,7 +964,7 @@ END
}
}
- my $preseed_file= preseed_base($ho, $suite, $sfx, $extra_packages, %xopts);
+ my $preseed_file= preseed_base($ho, $sfx, $extra_packages, %xopts);
$preseed_file.= (<<END);
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe \\
@@ -1004,7 +1006,7 @@ sub preseed_create ($$;@) {
my ($ho, $sfx, %xopts) = @_;
my $disk= $xopts{DiskDevice} || '/dev/sda';
- my $suite= $xopts{Suite} || $c{DebianSuite};
+ my $suite= $ho->{Suite};
my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.
$c{TftpDiVersion}.'-'.$ho->{Suite};
@@ -1192,7 +1194,7 @@ END
my $extra_packages = join(",",@extra_packages);
- my $preseed_file= preseed_base($ho,$suite,$sfx,$extra_packages,%xopts);
+ my $preseed_file= preseed_base($ho,$sfx,$extra_packages,%xopts);
$preseed_file .= (<<END);
d-i partman-auto/method string lvm
@@ -204,7 +204,6 @@ END
my $pvmenulst = ($bl eq "pvgrub" || $arch =~ /arm/);
$ps_url = preseed_create_guest($gho, $arch, '',
- Suite=>$suite,
PvMenuLst=>$pvmenulst);
$extra_disk = "";
@@ -55,7 +55,7 @@ our $gsuite;
sub preseed () {
- my $preseed_file = preseed_base($gho,$gsuite,'','',());
+ my $preseed_file = preseed_base($gho,'','',());
my $disk = guest_var($gho,'diskdevice','/dev/xvda');
@@ -59,7 +59,6 @@ sub install () {
my ($ps_url,$ps_file)= preseed_create
($ho, '',
- Suite => $ho->{Suite},
DiskDevice => $ho->{DiskDevice},
Properties => $ho->{Properties},
ExtraPreseed => <<END );