summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/partedit/partedit_x86.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-07-03 16:41:30 -0300
committerRenato Botelho <renato@netgate.com>2017-07-03 16:41:30 -0300
commitb91e8edec6ef973706ceba5985379a0aded6a5aa (patch)
tree92c1d3976fd61f447f3e62225141c02b6ef4c320 /usr.sbin/bsdinstall/partedit/partedit_x86.c
parent5fa580e9c45b6668f134701651fa17cad722750e (diff)
parentff3a058c4f832f66c1a779cf9bd05f758ad411d8 (diff)
downloadFreeBSD-src-b91e8edec6ef973706ceba5985379a0aded6a5aa.zip
FreeBSD-src-b91e8edec6ef973706ceba5985379a0aded6a5aa.tar.gz
Merge remote-tracking branch 'origin/releng/11.1' into RELENG_2_5
Diffstat (limited to 'usr.sbin/bsdinstall/partedit/partedit_x86.c')
-rw-r--r--usr.sbin/bsdinstall/partedit/partedit_x86.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/bsdinstall/partedit/partedit_x86.c b/usr.sbin/bsdinstall/partedit/partedit_x86.c
index a600bec..d783217 100644
--- a/usr.sbin/bsdinstall/partedit/partedit_x86.c
+++ b/usr.sbin/bsdinstall/partedit/partedit_x86.c
@@ -32,6 +32,10 @@
#include "partedit.h"
+/* EFI partition size in bytes */
+#define EFI_BOOTPART_SIZE (200 * 1024 * 1024)
+#define EFI_BOOTPART_PATH "/boot/boot1.efifat"
+
static const char *
x86_bootmethod(void)
{
@@ -96,7 +100,7 @@ bootpart_size(const char *scheme)
if (strcmp(x86_bootmethod(), "BIOS") == 0)
return (512*1024);
else
- return (200*1024*1024);
+ return (EFI_BOOTPART_SIZE);
return (0);
}
@@ -134,7 +138,7 @@ partcode_path(const char *part_type, const char *fs_type)
if (strcmp(part_type, "GPT") == 0) {
if (strcmp(x86_bootmethod(), "UEFI") == 0)
- return ("/boot/boot1.efifat");
+ return (EFI_BOOTPART_PATH);
else if (strcmp(fs_type, "zfs") == 0)
return ("/boot/gptzfsboot");
else
OpenPOWER on IntegriCloud