]> xenbits.xensource.com Git - osstest.git/commitdiff
Host install: Break out host_install_postboot_complete
authorRobert Ho <robert.hu@intel.com>
Mon, 17 Aug 2015 06:15:24 +0000 (14:15 +0800)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 25 Sep 2015 11:26:57 +0000 (12:26 +0100)
We are going to want to do this for nested HVM L1s too.

No functional change.

Signed-off-by: Robert Ho <robert.hu@intel.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v14: Squashed two patches into this one.

Osstest/TestSupport.pm
ts-host-install

index d966fe1c5d35d40ce075473f1ff98bae24e46c5e..a3a99822f9ce6aa48299b67a32d1117871846cd4 100644 (file)
@@ -115,6 +115,7 @@ BEGIN {
                       iso_gen_flags_basic
                       iso_copy_content_from_image
                       guest_editconfig_nocd
+                      host_install_postboot_complete
                       );
     %EXPORT_TAGS = ( );
 
@@ -2395,4 +2396,9 @@ sub guest_editconfig_nocd ($$) {
     });
 }
 
+sub host_install_postboot_complete ($) {
+    my ($ho) = @_;
+    target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .");
+}
+
 1;
index f734a9cd2cca59f989b178b5162c32c6928626aa..3f7f060237086d9c6ab2139cf4a54685e10553ea 100755 (executable)
@@ -165,7 +165,7 @@ END
     target_putfilecontents_root_stash($ho,10,$coredumps_conf,
                                '/etc/security/limits.d/coredumps.conf');
 
-    target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .");
+    host_install_postboot_complete($ho);
 
     logm('OK: install completed');
 }