From: Anthony PERARD Date: Mon, 16 Oct 2023 15:05:42 +0000 (+0100) Subject: preseed_create: Workaround fail grub-install on arndale X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4bfb5a044b8fda4c60b129db940856f7304f4e91;p=osstest.git preseed_create: Workaround fail grub-install on arndale grub-installer on arndale-* machine fails with Debian Bookworm. It tries to install "grub-pc" which doesn't exist. Skip installation. Somehow, cubietruck-* installation works fine. Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 36c0555..98b2fc8 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -1581,6 +1581,14 @@ chmod +x /target/$t END } + if ( $ho->{Flags}{'need-uboot-bootscr'} && + $ho->{Suite} =~ m/bookworm/) { + + # grub-installer fails on the arndale machine, it's trying to install + # "grub-pc" which doesn't exist. Skip installation. + $preseed_file .= "d-i grub-installer/skip boolean true\n"; + } + $preseed_file .= preseed_hook_cmds(); if ($backports_kernel || $ho->{Flags}{'no-di-kernel'}) {