Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2016 18:28:45 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302940 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201607161828.u6GISjir099668@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Sat Jul 16 18:28:44 2016
New Revision: 302940
URL: https://svnweb.freebsd.org/changeset/base/302940

Log:
  Fix encrypted MBR install
  
  The pools are exported and reimported in order to write the bootcode
  This causes an error when the bootpool is later mounted by common code
  The bootpool is now imported with the -N flag to prevent mounting
  
  Reported by:	Michael Dexter
  MFC after:	5 days

Modified:
  head/usr.sbin/bsdinstall/scripts/zfsboot

Modified: head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot	Sat Jul 16 18:06:41 2016	(r302939)
+++ head/usr.sbin/bsdinstall/scripts/zfsboot	Sat Jul 16 18:28:44 2016	(r302940)
@@ -1384,8 +1384,9 @@ zfs_create_boot()
 			     "-o altroot=\"$BSDINSTALL_CHROOT\"" "$zroot_name" ||
 			     return $FAILURE
 		if [ "$ZFSBOOT_BOOT_POOL" ]; then
+			# Import the bootpool, but do not mount it yet
 			f_eval_catch $funcname zpool "$ZPOOL_IMPORT_WITH_OPTIONS" \
-				     "-o altroot=\"$BSDINSTALL_CHROOT\"" \
+				     "-o altroot=\"$BSDINSTALL_CHROOT\" -N" \
 				     "$bootpool_name" || return $FAILURE
 		fi
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607161828.u6GISjir099668>