mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 04:00:31 +03:00
57732964d3
* Fix regression - "OVERLAY_MOUNTS" should have been "DO_OVERLAY_MOUNTS". * Fix update-rc.d commands in postinst. Thanx to subzero79@GitHub. * Fix make sure a filesystem exists before trying to mount in mount_fs() * Fix local variable usage. * Fix to read_mtab(): * Strip control characters (space - \040) from /proc/mounts GLOBALY, not just first occurrence. * Don't replace unprintable characters ([/-. ]) for use in the variable name with underscore. No need, just remove them all together. * Add check_boolean() to check if a user configure option is set ('yes', 'Yes', 'YES' or any combination there of) OR '1'. Anything else is considered 'unset'. * Add a ZFS_POOL_IMPORT to the default config. * This is a semi colon separated list of pools to import ONLY. * This is intended for systems which have _a lot_ of pools (from a SAN for example) and it would be to many to put in the ZFS_POOL_EXCEPTIONS variable.. * Add a config option "ZPOOL_IMPORT_OPTS" for adding additional options to "zpool import". * Add documentation and the chance of overriding the ZPOOL_CACHE variable in the config file. * Remove "sort" from find_pools() and setup_snapshot_booting(). Sometimes not available, and not really necessary. Signed-off-by: Turbo Fredriksson <turbo@bayour.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ned Bass <bass6@llnl.gov> Issue #3816
114 lines
4.4 KiB
Plaintext
114 lines
4.4 KiB
Plaintext
# ZoL userland configuration.
|
|
|
|
# To enable a boolean setting, set it to yes, on, true, or 1.
|
|
# Anything else will be interpreted as unset.
|
|
|
|
# Run `zfs mount -a` during system start?
|
|
ZFS_MOUNT='yes'
|
|
|
|
# Run `zfs unmount -a` during system stop?
|
|
ZFS_UNMOUNT='yes'
|
|
|
|
# Run `zfs share -a` during system start?
|
|
# nb: The shareiscsi, sharenfs, and sharesmb dataset properties.
|
|
ZFS_SHARE='yes'
|
|
|
|
# Run `zfs unshare -a` during system stop?
|
|
ZFS_UNSHARE='yes'
|
|
|
|
# Specify specific path(s) to look for device nodes and/or links for the
|
|
# pool import(s). See zpool(8) for more information about this variable.
|
|
# It supersedes the old USE_DISK_BY_ID which indicated that it would only
|
|
# try '/dev/disk/by-id'.
|
|
# The old variable will still work in the code, but is deprecated.
|
|
#ZPOOL_IMPORT_PATH="/dev/disk/by-vdev:/dev/disk/by-id"
|
|
|
|
# Should the datasets be mounted verbosely?
|
|
# A mount counter will be used when mounting if set to 'yes'.
|
|
VERBOSE_MOUNT='no'
|
|
|
|
# Should we allow overlay mounts?
|
|
# This is standard in Linux, but not ZFS which comes from Solaris where this
|
|
# is not allowed).
|
|
DO_OVERLAY_MOUNTS='no'
|
|
|
|
# Any additional option to the 'zfs import' commandline?
|
|
# Include '-o' for each option wanted.
|
|
# You don't need to put '-f' in here, unless you want it ALL the time.
|
|
# Using the option 'zfsforce=1' on the grub/kernel command line will
|
|
# do the same, but on a case-to-case basis.
|
|
ZPOOL_IMPORT_OPTS=""
|
|
|
|
# Full path to the ZFS cache file?
|
|
# See "cachefile" in zpool(8).
|
|
# The default is "@sysconfdir@/zfs/zpool.cache".
|
|
#ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
|
#
|
|
# Setting ZPOOL_CACHE to an empty string ('') AND setting ZPOOL_IMPORT_OPTS to
|
|
# "-c @sysconfdir@/zfs/zpool.cache" will _enforce_ the use of a cache file.
|
|
# This is needed in some cases (extreme amounts of VDEVs, multipath etc).
|
|
# Generally, the use of a cache file is usually not recommended on Linux
|
|
# because it sometimes is more trouble than it's worth (laptops with external
|
|
# devices or when/if device nodes changes names).
|
|
#ZPOOL_IMPORT_OPTS="-c @sysconfdir@/zfs/zpool.cache"
|
|
#ZPOOL_CACHE=""
|
|
|
|
# Any additional option to the 'zfs mount' command line?
|
|
# Include '-o' for each option wanted.
|
|
MOUNT_EXTRA_OPTIONS=""
|
|
|
|
# Build kernel modules with the --enable-debug switch?
|
|
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
|
|
ZFS_DKMS_ENABLE_DEBUG='no'
|
|
|
|
# Build kernel modules with the --enable-debug-dmu-tx switch?
|
|
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
|
|
ZFS_DKMS_ENABLE_DEBUG_DMU_TX='no'
|
|
|
|
# Keep debugging symbols in kernel modules?
|
|
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
|
|
ZFS_DKMS_DISABLE_STRIP='no'
|
|
|
|
# Wait for this many seconds in the initrd pre_mountroot?
|
|
# This delays startup and should be '0' on most systems.
|
|
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
|
|
ZFS_INITRD_PRE_MOUNTROOT_SLEEP='0'
|
|
|
|
# Wait for this many seconds in the initrd mountroot?
|
|
# This delays startup and should be '0' on most systems. This might help on
|
|
# systems which have their ZFS root on a USB disk that takes just a little
|
|
# longer to be available
|
|
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
|
|
ZFS_INITRD_POST_MODPROBE_SLEEP='0'
|
|
|
|
# List of additional datasets to mount after the root dataset is mounted?
|
|
#
|
|
# The init script will use the mountpoint specified in the 'mountpoint'
|
|
# property value in the dataset to determine where it should be mounted.
|
|
#
|
|
# This is a space separated list, and will be mounted in the order specified,
|
|
# so if one filesystem depends on a previous mountpoint, make sure to put
|
|
# them in the right order.
|
|
#
|
|
# It is not necessary to add filesystems below the root fs here. It is
|
|
# taken care of by the initrd script automatically. These are only for
|
|
# additional filesystems needed. Such as /opt, /usr/local which is not
|
|
# located under the root fs.
|
|
# Example: If root FS is 'rpool/ROOT/rootfs', this would make sense.
|
|
#ZFS_INITRD_ADDITIONAL_DATASETS="rpool/ROOT/usr rpool/ROOT/var"
|
|
|
|
# List of pools that should NOT be imported at boot?
|
|
# This is a space separated list.
|
|
#ZFS_POOL_EXCEPTIONS="test2"
|
|
|
|
# List of pools to import?
|
|
# If this variable is set, there will be NO auto-import of ANY other
|
|
# pool. In essence, there will be no auto detection of availible pools.
|
|
# This is a semi-colon separated list.
|
|
# Makes the variable ZFS_POOL_EXCEPTIONS above redundant (won't be checked).
|
|
#ZFS_POOL_IMPORT="pool1;pool2"
|
|
|
|
# Optional arguments for the ZFS Event Daemon (ZED).
|
|
# See zed(8) for more information on available options.
|
|
#ZED_ARGS="-M"
|