]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Refactor installation of overlays
authorlongtao.pang <longtaox.pang@intel.com>
Wed, 13 May 2015 03:36:38 +0000 (11:36 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 May 2015 13:38:16 +0000 (14:38 +0100)
Apply overlay to guests as well as hosts by moving to preseed_base.

We do this because we want to be able to:
       * Use '/etc/init.d/osstest-confirm-booted' for guests as
         well as hosts (in particular when testing nestedhvm
         we sometimes want to treat a guest as a host).
       * Use grub's 20_linux_xen which is harmless unless Xen is
         installed in the guest which is the case only for
         nestedhvm testing when we want these changes.
The other things in the overlay are some initscripts
(xenbridge and xenlightdaemons) which are not enabled for guests and
hence are therefore harmless.

Signed-off-by: longtao.pang <longtaox.pang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Osstest/Debian.pm

index 537ccbe671ea5607b99ceb21dba7b64bb0b9500b..46388d8626025bd0b736ac0420a21fa6ee4e8c1b 100644 (file)
@@ -621,6 +621,7 @@ sub preseed_base ($$$$;@) {
 
     preseed_ssh($ho, $sfx);
     preseed_hook_overlay($ho, $sfx, $c{OverlayLocal}, 'overlay-local.tar');
+    preseed_hook_overlay($ho, $sfx, 'overlay', 'overlay.tar');
 
     my $preseed = <<"END";
 d-i mirror/suite string $suite
@@ -777,8 +778,6 @@ ls -l /dev/sd*
 true
 END
 
-    preseed_hook_overlay($ho, $sfx, 'overlay', 'overlay.tar');
-
     preseed_hook_command($ho, 'late_command', $sfx, <<END);
 #!/bin/sh
 set -ex