Skip to content

Commit

Permalink
Small fixup to work with FreeBSD 11
Browse files Browse the repository at this point in the history
  • Loading branch information
DaElf committed Feb 10, 2016
1 parent 0dd4bd7 commit 4589a94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Expand Up @@ -9,11 +9,12 @@
#
# User-defined variables
#
BASE?=/cdrom/usr/freebsd-dist
#BASE?=/cdrom/usr/freebsd-dist
BASE=/image
KERNCONF?= GENERIC
MFSROOT_FREE_INODES?=10%
MFSROOT_FREE_BLOCKS?=10%
MFSROOT_MAXSIZE?=80m
MFSROOT_MAXSIZE?=100m

# If you want to build your own kernel and make you own world, you need to set
# -DCUSTOM or CUSTOM=1
Expand All @@ -39,7 +40,8 @@ CUSTOMFILESDIR?=customfiles
TOOLSDIR?= tools
PRUNELIST?= ${TOOLSDIR}/prunelist
KERN_EXCLUDE?= ${TOOLSDIR}/kern_exclude
PKG_STATIC?= ${TOOLSDIR}/pkg-static
#PKG_STATIC?= ${TOOLSDIR}/pkg-static
PKG_STATIC?= $(which pkg_static)
#
# Program defaults
#
Expand Down
6 changes: 6 additions & 0 deletions tools/do_gpt.sh
Expand Up @@ -60,8 +60,14 @@ if [ -n "$VERBOSE" ]; then
else
TIME=
fi

gpart create -s gpt ${unit}
set +e
gpart add -t freebsd-boot -b 34 -l boot -s 512K ${unit}
if [ $? != 0 ]; then
gpart add -t freebsd-boot -l boot -s 512K ${unit}
fi
set -e
gpart bootcode -b ${BOOTDIR}/pmbr -p ${BOOTDIR}/gptboot -i 1 ${unit}
gpart add -t freebsd-ufs -l rootfs ${unit}

Expand Down

0 comments on commit 4589a94

Please sign in to comment.