aboutsummaryrefslogtreecommitdiff
path: root/tools/boot/install-boot.sh
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-07-13 16:33:21 +0000
committerIan Lepore <ian@FreeBSD.org>2018-07-13 16:33:21 +0000
commit394641cf3d2fd8422a6ee79a73d7eca857bddb2e (patch)
tree4662099ba7548875c44d4af807535c74b6a406ec /tools/boot/install-boot.sh
parent7b4b55e520fc56562397781361b7ff910676a2d8 (diff)
downloadsrc-394641cf3d2fd8422a6ee79a73d7eca857bddb2e.tar.gz
src-394641cf3d2fd8422a6ee79a73d7eca857bddb2e.zip
More little fixes... fix a function name typo (eps vs esp), and cope with
newer versions of gpart that show mbr efi partition types with the name 'efi' rather than as '!239'.
Notes
Notes: svn path=/head/; revision=336242
Diffstat (limited to 'tools/boot/install-boot.sh')
-rwxr-xr-xtools/boot/install-boot.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/boot/install-boot.sh b/tools/boot/install-boot.sh
index 49948a1b7739..54eb6bec9760 100755
--- a/tools/boot/install-boot.sh
+++ b/tools/boot/install-boot.sh
@@ -48,7 +48,10 @@ make_esp_mbr() {
s=$(find-part $dev "!239")
if [ -z "$s" ] ; then
- die "No ESP slice found"
+ s=$(find-part $dev "efi")
+ if [ -z "$s" ] ; then
+ die "No ESP slice found"
+ fi
fi
make_esp /dev/${dev}s${s} ${dst}
}
@@ -149,7 +152,7 @@ boot_nogeli_mbr_zfs_legacy() {
}
boot_nogeli_mbr_zfs_uefi() {
- make_eps_mbr $1 $2
+ make_esp_mbr $1 $2
}
boot_nogeli_mbr_zfs_both() {