Browse Source

Do not try to use MBR on AArch64

When I tried to build CentOS8 image for AArch64 I got error saying that
MBR is not supported. So make sure that it will not be used by default.

Change-Id: Ib67ab7f808d727c3c61932c540d398dbe723972f
tags/2.36.0
Marcin Juszkiewicz 2 months ago
parent
commit
18e35893f7
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      diskimage_builder/lib/common-functions

+ 5
- 1
diskimage_builder/lib/common-functions View File

@@ -302,7 +302,11 @@ function _arg_defaults_hack() {
done

if [[ -n "${vm_seen}" && -z "${blockdev_seen}" ]]; then
elements="$elements block-device-mbr"
if [[ "arm64 aarch64" =~ $ARCH ]] ; then
elements="$elements block-device-efi"
else
elements="$elements block-device-mbr"
fi
fi

echo $elements


Loading…
Cancel
Save