aboutsummaryrefslogtreecommitdiff
path: root/release/i386
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-04-12 19:00:22 +0000
committerEd Maste <emaste@FreeBSD.org>2018-04-12 19:00:22 +0000
commitbf249c5a0a273663367995eb70b0fea4f464f21c (patch)
tree8cf83f41a58b92b20b377ce849b3df88f9b0e06e /release/i386
parent6a073d904353aa1419ff13ceeddaf023c6283bbf (diff)
downloadsrc-bf249c5a0a273663367995eb70b0fea4f464f21c.tar.gz
src-bf249c5a0a273663367995eb70b0fea4f464f21c.zip
switch i386 memstick installer images to MBR
Some BIOSes have trouble booting from GPT in non-UEFI mode. This is commonly reported with Lenovo laptops, including my x220. As we do not currently support booting FreeBSD/i386 via UEFI there's no reason to prefer GPT. The "vestigial swap partition" was added in r265017 to work around an issue with loader's GPT support, so we should not need it when using MBR. We may want to make the same change to amd64, although the issue there is mitigated by such systems booting via UEFI in the common case. PR: 227422 Reviewed by: gjb MFC after: 3 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=332446
Diffstat (limited to 'release/i386')
-rwxr-xr-xrelease/i386/make-memstick.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/release/i386/make-memstick.sh b/release/i386/make-memstick.sh
index 6aa1b507a68e..6774e86ae550 100755
--- a/release/i386/make-memstick.sh
+++ b/release/i386/make-memstick.sh
@@ -36,11 +36,9 @@ makefs -B little -o label=FreeBSD_Install -o version=2 ${2}.part ${1}
rm ${1}/etc/fstab
rm ${1}/etc/rc.conf.local
-mkimg -s gpt \
- -b ${1}/boot/pmbr \
- -p freebsd-boot:=${1}/boot/gptboot \
- -p freebsd-ufs:=${2}.part \
- -p freebsd-swap::1M \
+mkimg -s mbr \
+ -b ${1}/boot/mbr \
+ -p freebsd:-"mkimg -s bsd -b ${1}/boot/boot -p freebsd-ufs:=${2}.part" \
-o ${2}
rm ${2}.part