@@ -2509,11 +2509,11 @@ sub iso_copy_content_from_image($$) {
END
}
-sub guest_editconfig_midinstall ($$) {
- my ($gho,$emptyiso) = @_;
+sub guest_editconfig_midinstall ($) {
+ my ($gho) = @_;
guest_editconfig($gho->{Host}, $gho, sub {
if (m/^\s*disk\s*\=/ .. /\]/) {
- s/\Q$gho->{Rimage}\E/$emptyiso/;
+ s/\Q$gho->{Rimage}\E//;
}
s/^on_reboot.*/on_reboot='restart'/;
});
@@ -181,8 +181,6 @@ sub prepare_initrd ($$$) {
END
}
-our $emptyiso= "/root/$flight.$job.$gn-empty.iso";
-
sub iso_path ($$) {
my ($which, $deftail) = @_;
my $v = guest_var($gho, "iso_$which", "/install.amd/$deftail");
@@ -205,7 +203,6 @@ sub prep () {
my $base = "/root/$flight.$job.$gn-";
my $newiso= $base . "newiso";
- my $emptydir= $base . "empty-dir";
my $initrddir= $base . "initrd-dir";
my $preseed_file_path = $base . "preseed";
@@ -213,8 +210,6 @@ sub prep () {
-no-emul-boot
-r);
- iso_create_empty($ho, $emptyiso, $emptydir);
-
my $extra_config = '';
$extra_config .= "nestedhvm=1\n"
if guest_var_boolean($gho,"enable_nestedhvm");
@@ -283,7 +278,7 @@ if ($stage<2) {
guest_destroy($gho);
}
-guest_editconfig_midinstall($gho,$emptyiso);
+guest_editconfig_midinstall($gho);
guest_create($gho);
guest_await_dhcp_tcp($gho,300);
guest_check_up($gho);
@@ -106,8 +106,6 @@ ENDKEYS
END
}
-our $emptyiso= "/root/$flight.$job.$gn-empty.iso";
-
sub prep () {
target_install_packages_norec($ho, qw(lvm2 rsync genisoimage));
@@ -118,9 +116,6 @@ sub prep () {
100);
my $newiso= "/root/$flight.$job.$gn-newiso";
- my $emptydir= "/root/$flight.$job.$gn-empty-dir";
-
- iso_create_empty($ho, $emptyiso, $emptydir);
my @isogen= iso_gen_flags_basic();
@@ -158,7 +153,7 @@ if ($stage<2) {
guest_destroy($gho);
}
-guest_editconfig_midinstall($gho,$emptyiso);
+guest_editconfig_midinstall($gho);
guest_create($gho);
guest_await_dhcp_tcp($gho,300);
guest_check_up($gho);