From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>, xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 21/26] ts-debian-hvm-install: Do not create EFI partition if EFI not in use
Date: Mon, 21 Sep 2015 10:32:27 +0100 [thread overview]
Message-ID: <1442827947.10338.24.camel@citrix.com> (raw)
In-Reply-To: <1442598616-2884-8-git-send-email-ian.jackson@eu.citrix.com>
On Fri, 2015-09-18 at 18:50 +0100, Ian Jackson wrote:
> If we are booting our install ISO using a non-EFI executable, don't
> try to provide an EFI for the installed system either.
>
> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
FWIW the default recipes used by d-i use "$iflabel{ gpt }" to achieve the
same thing. Actually I'm a bit surprised that this isn't the affect of
"method { efi }" too.
Anyway, this approach is good enough for our purposes so:
Acked-by: Ian Campbell <ian.campbell@citrix.com>
> ---
> ts-debian-hvm-install | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install
> index fb07293..9bc6cc8 100755
> --- a/ts-debian-hvm-install
> +++ b/ts-debian-hvm-install
> @@ -49,6 +49,7 @@ our $guesthost= "$gn.guest.osstest";
> our $gho;
>
> our ($kernel, $ramdisk);
> +our $bootfile;
>
> our $gsuite;
>
> @@ -56,7 +57,7 @@ sub preseed () {
>
> my $preseed_file = preseed_base($gho,$gsuite,'','',());
>
> - $preseed_file .= (<<END);
> + $preseed_file .= (<<END.($bootfile =~ m/\.efi/ ? <<END : '').<<END);
> d-i netcfg/get_hostname string $gn
>
> d-i partman-auto/disk string /dev/xvda
> @@ -64,12 +65,14 @@ d-i partman-auto/method string regular
>
> d-i partman-auto/expert_recipe string \\
> boot-root :: \\
> +END
> 512 50 512 vfat \\
> \$primary{ } \$bootable{ } \\
> method{ efi } format{ } \\
> use_filesystem{ } filesystem{ vfat } \\
> mountpoint{ /boot/efi } \\
> . \\
> +END
> 5000 50 5000 ext4 \\
> method{ format } format{ } \\
> use_filesystem{ } filesystem{ ext4 } \\
> @@ -201,7 +204,7 @@ sub prep () {
> -no-emul-boot
> -r);
>
> - my $bootfile = 'boot/grub/efi.img';
> + $bootfile = 'boot/grub/efi.img';
> if (!target_file_exists($ho, "$newiso/$bootfile")) {
> $bootfile = "isolinux/isolinux.bin";
> push @isogen_extra, qw(-c isolinux/boot.cat);
next prev parent reply other threads:[~2015-09-21 9:32 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 17:50 [OSSTEST PATCH v3 00/15-26] xen.git#staging smoke tests Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 15/26] cr*: Support xen-unstable-smoke Ian Jackson
2015-09-21 9:17 ` Ian Campbell
2015-09-21 10:21 ` Ian Jackson
2015-09-21 10:32 ` Ian Campbell
2015-09-21 10:53 ` Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 16/26] ap-*: Be able to fetch and push xen.git#smoke Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 17/26] crontab: Enable xen-unstable-smoke branch every 3h at <1mod3>:51 UTC Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 18/26] ts-debian-hvm-install, etc.: Do not hardcode in-iso path Ian Jackson
2015-09-21 9:19 ` Ian Campbell
2015-09-18 17:50 ` [OSSTEST PATCH 19/26] ts-debian-hvm-install: Cope with images containing only isolinux Ian Jackson
2015-09-21 9:28 ` Ian Campbell
2015-09-21 10:35 ` Ian Jackson
2015-09-21 14:30 ` Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 20/26] ts-debian-hvm-install: Set $gsuite after $gho Ian Jackson
2015-09-21 9:29 ` Ian Campbell
2015-09-18 17:50 ` [OSSTEST PATCH 21/26] ts-debian-hvm-install: Do not create EFI partition if EFI not in use Ian Jackson
2015-09-21 9:32 ` Ian Campbell [this message]
2015-09-21 10:36 ` Ian Jackson
2015-09-21 10:41 ` Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 22/26] ts-debian-hvm-install: Use /dev/sda for i386, not /dev/xvda Ian Jackson
2015-09-21 9:40 ` Ian Campbell
2015-09-21 10:38 ` Ian Jackson
2015-09-18 17:50 ` [OSSTEST PATCH 23/26] Timeouts: Introduce target_adjust_timeout Ian Jackson
2015-09-21 9:41 ` Ian Campbell
2015-09-18 17:50 ` [OSSTEST PATCH 24/26] Timeouts: Honour guest-related timeout-adjustment runvars Ian Jackson
2015-09-21 9:43 ` Ian Campbell
2015-09-18 17:50 ` [OSSTEST PATCH 25/26] Debian i386 HVM tests: Increase installation timeout Ian Jackson
2015-09-21 9:43 ` Ian Campbell
2015-09-18 17:50 ` [OSSTEST PATCH 26/26] cri-common: Add a missing semicolon Ian Jackson
2015-09-21 9:44 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442827947.10338.24.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).