From: Ian Campbell Subject: [OSSTEST v6 08/24] ts-debian-hvm-install: Only apply EFI workaround for Wheezy Date: Wed, 6 May 2015 10:56:37 +0100 Message-ID: <1430906213-30108-8-git-send-email-ian.campbell@citrix.com> References: <1430905605.2660.187.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1430905605.2660.187.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: wei.liu2@citrix.com, Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org The previous refactoring of preseed hooks makes this easy to do. The underlying issue is lack of persistent variable store in our OVMF setup, which we workaround by placing a copy of grub at the removable media path. Add a comment saying this since I initially thought this was just a Wheezy bug. In Jessie the extra copy of grub can be achieved by preseeding grub-installer/force-efi-extra-removable (since various real h/w has similar limitations/bugs) however I haven't tested that so I didn't add it to the preseed yet, I just mention it in the code comment. Currently this script hardcodes Wheezy, refactor to use the 'suite' guest_var (or $c{GuestDebianSuite}) Signed-off-by: Ian Campbell Cc: wei.liu2@citrix.com --- v6: New patch --- ts-debian-hvm-install | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index b37f0f9..f3629e1 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -41,9 +41,11 @@ our $disk_mb= 10000; our $guesthost= "$gn.guest.osstest"; our $gho; +our $gsuite= guest_var($gho,'suite',$c{GuestDebianSuite}); + sub preseed () { - my $preseed_file = preseed_base($gho,'wheezy','','',()); + my $preseed_file = preseed_base($gho,$gsuite,'','',()); $preseed_file .= (<