Skip to content

Commit

Permalink
efibootmgr: add option to set partition number of EFI partition
Browse files Browse the repository at this point in the history
This is useful when ESP is not the first partition, for instance if it
is added after some existing partitions during switch from BIOS to
UEFI boot.
  • Loading branch information
ackalker authored and Hoshpak committed Jul 8, 2019
1 parent bda41c0 commit 97af122
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions srcpkgs/efibootmgr/files/efibootmgr-kernel-hook.confd
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ MODIFY_EFI_ENTRIES=0
# OPTIONS="root=/dev/sda3 loglevel=4 slub_debug=P page_poison=1"
# Disk where EFI Partition is. Default is /dev/sda
# DISK="/dev/sda"
# Partition number of EFI Partition. Default is 1
# PART=1
3 changes: 3 additions & 0 deletions srcpkgs/efibootmgr/files/kernel.d/efibootmgr.post-install
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ args=""
if [ "x${DISK}" != x ]; then
args="-d $DISK"
fi
if [ "x${PART}" != x ]; then
args="$args -p $PART"
fi

# get major version, e.g. "4.8" for "linux4.8"
major_version=$(echo $PKGNAME | cut -c 6-)
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/efibootmgr/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'efibootmgr'
pkgname=efibootmgr
version=17
revision=2
revision=3
hostmakedepends="pkg-config"
makedepends="libefivar-devel popt-devel"
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
Expand Down

0 comments on commit 97af122

Please sign in to comment.