Install correct GRUB packages

This commit is contained in:
Joshua Boniface 2023-09-05 10:38:01 -04:00
parent 01948e9597
commit 24d7ffd0d0
1 changed files with 7 additions and 1 deletions

View File

@ -80,7 +80,13 @@ default_debmirror="http://ftp.debian.org/debian"
basepkglist="lvm2,parted,gdisk,sudo,vim,gpg,gpg-agent,openssh-server,vlan,ifenslave,python3,ca-certificates,curl" basepkglist="lvm2,parted,gdisk,sudo,vim,gpg,gpg-agent,openssh-server,vlan,ifenslave,python3,ca-certificates,curl"
case $( uname -m ) in case $( uname -m ) in
x86_64) x86_64)
basepkglist="${basepkglist},grub-pc,grub-efi-amd64,linux-image-amd64" # If we're in EFI mode, install grub-efi, otherwise install grub-pc
if grep -q efivarfs /proc/mounts &>/dev/null; then
grub_pkg="grub-efi"
else
grub_pkg="grub-pc"
fi
basepkglist="${basepkglist},${grub_pkg},linux-image-amd64"
;; ;;
aarch64) aarch64)
basepkglist="${basepkglist},grub-efi-arm64,linux-image-arm64" basepkglist="${basepkglist},grub-efi-arm64,linux-image-arm64"