$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw(debian_boot_setup
- di_special_kernel
+ di_installer_path di_special_kernel
setupboot_bootloader_edited_rune
debian_overlays
debian_guest_suite debian_guest_di_version
return create_webfile($ho, "preseed$sfx", $preseed_file);
}
+sub di_installer_path ($) {
+ # returns a path within $ho->{Tftp}{Path}, which is therefore
+ # useable for constructing host paths as well as guest paths
+ my ($ho) = @_;
+
+ return $ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.
+ ($ho->{DiVersion} // cfg_tftp_di_version($ho->{Suite}))
+ .'-'.$ho->{Suite};
+}
+
sub di_special_kernel ($$$) {
my ($ho, $d_i, $fn) = @_;
# calls $fn->($kp, $kernel, $cpio) # $kernel and/or $cpio may be undef
my $disk= $xopts{DiskDevice} || '/dev/sda';
my $suite= $ho->{Suite};
- my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.
- ($ho->{DiVersion} // cfg_tftp_di_version($ho->{Suite}))
- .'-'.$ho->{Suite};
+ my $d_i = $ho->{Tftp}{Path}.'/'.di_installer_path($ho);
preseed_hook_installscript($ho, $sfx,
'/lib/partman/init.d', '000override-parted-devices', <<END);