Skip to content

Commit

Permalink
Fixup for aarch64 ubuntu multi-ESP support
Browse files Browse the repository at this point in the history
  • Loading branch information
asciiprod committed Aug 3, 2023
1 parent 10905d1 commit 9433b6c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions debconf.functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ debconf_set_grub_install_devices() {
done
# set install_devices for grub-efi and run dpkg-reconfigure to install grub on all ESPs listed
if [ "$IAM" == "ubuntu" -a "$IMG_VERSION" -ge 2004 ] && [ "$UEFI" -eq 1 ] && [ -n "$(echo $part)" ]; then
debconf_set "grub-efi-$SYSARCH grub-efi/install_devices string ${value::-2}"
execute_chroot_command "dpkg-reconfigure -f noninteractive grub-efi-$SYSARCH"
local grub_pkg_name
if [ "$SYSARCH" == "x86_64" ]; then
grub_pkg_name="grub-efi-amd64"
else
grub_pkg_name="grub-efi-$SYSARCH"
fi
debconf_set "$grub_pkg_name grub-efi/install_devices string ${value::-2}"
execute_chroot_command "dpkg-reconfigure -f noninteractive $grub_pkg_name"
else
debconf_set "grub-pc grub-pc/install_devices multiselect ${value::-2}"
fi
Expand Down

0 comments on commit 9433b6c

Please sign in to comment.