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>
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
true
END
- preseed_hook_overlay($ho, $sfx, 'overlay', 'overlay.tar');
-
preseed_hook_command($ho, 'late_command', $sfx, <<END);
#!/bin/sh
set -ex