Add zfs volinit command, suggested by tnn@ this will initialize all zvols
defined in a system. So they can be mounted from fstab as regular block devices.
This commit is contained in:
parent
d33c69eb5f
commit
f6e34e608b
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: mountall,v 1.7 2009/10/05 22:39:27 haad Exp $
|
||||
# $NetBSD: mountall,v 1.8 2009/10/18 21:58:37 haad Exp $
|
||||
#
|
||||
|
||||
# REQUIRE: mountcritremote named ypbind
|
||||
|
@ -18,6 +18,8 @@ mountall_start()
|
|||
if [ -f /etc/zfs/zpool.cache ]; then
|
||||
# Get ZFS module loaded (and thereby, zvols created).
|
||||
zfs list > /dev/null 2>&1
|
||||
# Initialize zvols so they can be mounted
|
||||
zfs volinit
|
||||
# Mount file systems noted in fstab.
|
||||
mount -a
|
||||
# Mount ZFS file systems.
|
||||
|
|
Loading…
Reference in New Issue