|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v2 5/7] Debian: ARM: only apply no bootloader workaround if xopts{PvMenuLst}
This workaround is only necessary because of how pv-menu-list works,
so we should only apply both or neither of them.
This results in a long line and I'm about to add a second workaround
to this block, so switch to a regular if block instead of postfixing
on the one command. Move the comment inside that block in preparation
for other workarounds as well.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
v2: Add a \n after each &&
---
Osstest/Debian.pm | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index f0bcf06..1c07108 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -915,15 +915,20 @@ d-i grub-installer/bootdev string /dev/xvda
END
- # Debian doesn't currently know what bootloader to install in a
- # Xen guest on ARM. We install pv-grub-menu above which actually
- # does what we need, but the installer doesn't treat that as a
- # "bootloader".
logm("\$arch is $arch, \$suite is $suite");
- $preseed_file.= (<<END) if $arch =~ /^arm/ && $suite =~
/wheezy|jessie|sid/;
+ if ($xopts{PvMenuLst} &&
+ $arch =~ /^arm/ &&
+ $suite =~ /wheezy|jessie|sid/ ) {
+
+ # Debian doesn't currently know what bootloader to install in
+ # a Xen guest on ARM. We install pv-grub-menu above which
+ # actually does what we need, but the installer doesn't treat
+ # that as a "bootloader".
+ $preseed_file.= (<<END);
d-i nobootloader/confirmation_common boolean true
END
+ }
$preseed_file .= preseed_hook_cmds();
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |