From 9ed4acd5a5b22fb444e48f771453a21f3b0858ab Mon Sep 17 00:00:00 2001 From: David Marec Date: Mon, 8 Oct 2018 00:16:52 +0200 Subject: [PATCH] set partition active --- zfsinstall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zfsinstall.sh b/zfsinstall.sh index 9be6c57..5da7e8c 100644 --- a/zfsinstall.sh +++ b/zfsinstall.sh @@ -33,10 +33,11 @@ echo partitioning ${DESTDISK} echo ============= gpart create -s gpt ${DESTDISK} -gpart add -t freebsd-boot -s 1024 -l boot ${DESTDISK} -gpart add -a 1m -s 32G -t freebsd-swap -l swap ${DESTDISK} +gpart add -t freebsd-boot -s 1024 -l gptboot0 ${DESTDISK} +gpart add -a 1m -s 32G -t freebsd-swap -l gptswap0 ${DESTDISK} gpart add -a 1m -t freebsd-zfs -l syszfs ${DESTDISK} gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${DESTDISK} +gpart set -a active ${DESTDISK} gpart show ${DESTDISK} @@ -80,6 +81,7 @@ zfs create -o exec=off -o setuid=off -o mountpoint=/var/tmp ${ZPOOL}/VAR/tmp zfs create -o mountpoint=/usr/home ${ZPOOL}/HOME/master +zpool set bootfs=${ZPOOL}/ROOT/master ${ZPOOL} chmod 1777 ${DESTDIR}/tmp ${DESTDIR}/var/tmp -- 2.47.0