diff options
author | allanjude <allanjude@FreeBSD.org> | 2015-07-14 19:42:40 +0000 |
---|---|---|
committer | allanjude <allanjude@FreeBSD.org> | 2015-07-14 19:42:40 +0000 |
commit | ad871e1603565f742a701f17a2ddfd1151909cda (patch) | |
tree | 7068fc1f5ac6be4edb1e2ab9d3147d6056873a41 /usr.sbin/bsdinstall | |
parent | bdfe139887cbc68bcc8bcd77f6a5ab1babbd6749 (diff) | |
download | FreeBSD-src-ad871e1603565f742a701f17a2ddfd1151909cda.zip FreeBSD-src-ad871e1603565f742a701f17a2ddfd1151909cda.tar.gz |
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
Diffstat (limited to 'usr.sbin/bsdinstall')
-rwxr-xr-x | usr.sbin/bsdinstall/scripts/zfsboot | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot index 99e4227..e7e10ae 100755 --- a/usr.sbin/bsdinstall/scripts/zfsboot +++ b/usr.sbin/bsdinstall/scripts/zfsboot @@ -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 |