Skip to contentSkip to conversation

Debian: Move sysvinit-core install from preseed_create to preseed_base

PATCH In review Ian Campbell 2 participants 2 messages Nov 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Debian: Move sysvinit-core install from preseed_create to preseed_base

preseed_create is used only for physical host installs, but we want this workaround to apply to at least ts-debian-hvm-install'd guests which are going to be used for nested testing.

I can't see any harm in doing this globally for all Debian HVM guests, as well as PV guests installed using Debian Installer.

---
 Osstest/Debian.pm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Osstest/Debian.pm +8 -8
index cee0d88..464f190 100644
@@ -799,6 +799,14 @@ sub preseed_base ($$$$;@) {
 
     $xopts{ExtraPreseed} ||= '';
 
+    # Systemd doesn't honor osstest-confirm-booted service, which
+    # breaks ts-leak-check.  Fall back to SysV init for now.
+    if ( $suite =~ /jessie/ ) {
+       preseed_hook_command($ho, 'late_command', $sfx, <<END)
+in-target apt-get install -y sysvinit-core
+END
+    }
+
     preseed_ssh($ho, $sfx);
 
     preseed_hook_command($ho, 'late_command', '', <<'END');
@@ -1178,14 +1186,6 @@ in-target update-initramfs -u -k all
 END
     }
 
-    # Systemd doesn't honor osstest-confirm-booted service, which
-    # breaks ts-leak-check.  Fall back to SysV init for now.
-    if ( $ho->{Suite} =~ /jessie/ ) {
-       preseed_hook_command($ho, 'late_command', $sfx, <<END)
-in-target apt-get install -y sysvinit-core
-END
-    }
-
     my @extra_packages = ();
     push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'};
 
Signature · 1 line
2.6.1
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] Debian: Move sysvinit-core install from preseed_create to preseed_base"):

Quoted 6 lines

preseed_create is used only for physical host installs, but we want this workaround to apply to at least ts-debian-hvm-install'd guests which are going to be used for nested testing.

I can't see any harm in doing this globally for all Debian HVM guests, as well as PV guests installed using Debian Installer.