svn commit: r285554 - head/usr.sbin/bsdinstall/scripts

Allan Jude allanjude at FreeBSD.org
Tue Jul 14 19:42:41 UTC 2015


Author: allanjude (doc committer)
Date: Tue Jul 14 19:42:40 2015
New Revision: 285554
URL: https://svnweb.freebsd.org/changeset/base/285554

Log:
  Set a mountpoint on the root of the pool so user-created datasets have a mountpoint to inherit
  
  Reviewed by:	darius
  Approved by:	brueffer
  MFC after:	3 days
  Relnotes:	yes
  Sponsored by:	ScaleEngine Inc.
  Differential Revision:	https://reviews.freebsd.org/D3063

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

Modified: head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot	Tue Jul 14 19:38:26 2015	(r285553)
+++ head/usr.sbin/bsdinstall/scripts/zfsboot	Tue Jul 14 19:42:40 2015	(r285554)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #-
-# Copyright (c) 2013-2014 Allan Jude
+# Copyright (c) 2013-2015 Allan Jude
 # Copyright (c) 2013-2015 Devin Teske
 # All rights reserved.
 #
@@ -1237,6 +1237,15 @@ zfs_create_boot()
 		             return $FAILURE
 	done
 
+	#
+	# Set a mountpoint for the root of the pool so newly created datasets
+	# have a mountpoint to inherit
+	#
+	f_dprintf "$funcname: Setting mountpoint for root of the pool..."
+	f_eval_catch $funcname zfs "$ZFS_SET" \
+		"mountpoint=/$zroot_name" "$zroot_name" ||
+		return $FAILURE
+
 	# Touch up permissions on the tmp directories
 	f_dprintf "$funcname: Modifying directory permissions..."
 	local dir


More information about the svn-src-all mailing list