From ad559f4eef05670b590bbc7f69baccbc76cad7f7 Mon Sep 17 00:00:00 2001 From: Kim Date: Wed, 7 Nov 2018 19:38:49 +0100 Subject: Add uefi install option. (#84) * Add grub-efi package dependencies * Install grub-efi if we install on efi partition --- debian/control | 5 +++++ scripts/install/install-postinst-new | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/debian/control b/debian/control index 12b27b1b..b2ed93d0 100644 --- a/debian/control +++ b/debian/control @@ -47,6 +47,11 @@ Depends: adduser, curl, parted, libpam-cap, + efibootmgr, + libefivar0, + grub-efi-amd64-bin, + dosfstools, + gdisk, ${arch:Depends} Pre-Depends: bash-completion Suggests: util-linux (>= 2.13-5), diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new index 5e0f42a9..ee81dd58 100755 --- a/scripts/install/install-postinst-new +++ b/scripts/install/install-postinst-new @@ -126,6 +126,10 @@ install_grub () { progress_indicator start if [ -f "/tmp/efiparts.tmp" ]; then + # Remove grub-pc packages + dpkg -r grub-pc grub2 + # Install grub-efi packages + dpkg -i /usr/share/vyos/packages/grub-efi*.deb EFI_PARTITION=1 mkdir -p $grub_root/boot/efi readarray parts < /tmp/efiparts.tmp -- cgit v1.2.3