From 059599af0adb528609f28cff3f1831fd829295f3 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 10 Mar 2015 23:10:24 -0700 Subject: [PATCH] gpt - Bump size of the boot partition from 768MB to 1GB * Bump the default size of the boot partition to 1GB. --- sbin/gpt/boot.c | 2 +- sbin/gpt/gpt.8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/gpt/boot.c b/sbin/gpt/boot.c index 2c89dd237e..f5dae3644b 100644 --- a/sbin/gpt/boot.c +++ b/sbin/gpt/boot.c @@ -78,7 +78,7 @@ bootset(int fd) err(1, "unable to find uuid for 'DragonFly Label32'"); entry = 0; block = 0; - size = 768 * 1024 * 1024 / 512; + size = (off_t)1024 * 1024 * 1024 / 512; /* 1GB */ gpt = map_find(MAP_TYPE_PRI_GPT_HDR); if (gpt == NULL) diff --git a/sbin/gpt/gpt.8 b/sbin/gpt/gpt.8 index 29f75dfed2..274b81b769 100644 --- a/sbin/gpt/gpt.8 +++ b/sbin/gpt/gpt.8 @@ -163,7 +163,7 @@ The command allows the user to create a small boot partition in a freshly created GPT. .Pp -This command creates a small, 768MB boot partition as partition #0 +This command creates a small, 1GB boot partition as partition #0 and hacks in a special .Sq slice 1 in the PMBR which aliases it. -- 2.41.0