Skip to content

Commit

Permalink
Add uefi install option. (#84)
Browse files Browse the repository at this point in the history
* Add grub-efi package dependencies

* Install grub-efi if we install on efi partition
  • Loading branch information
UnicronNL authored Nov 7, 2018
1 parent 679b908 commit ad559f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 4 additions & 0 deletions scripts/install/install-postinst-new
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad559f4

Please sign in to comment.