2021-10-18 13:17:13 +00:00
|
|
|
# SPDX-FileCopyrightText: no
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
#
|
2019-10-28 13:48:02 +00:00
|
|
|
# Creates /etc/fstab and /etc/crypttab in the target system.
|
|
|
|
# Also creates mount points for all the filesystems.
|
|
|
|
#
|
|
|
|
# When creating fstab entries for a filesystem, this module
|
|
|
|
# uses the options for the filesystem type to write to the
|
|
|
|
# options field of the file.
|
|
|
|
---
|
|
|
|
# Mount options to use for all filesystems. If a specific filesystem
|
|
|
|
# is listed here, use those options, otherwise use the *default*
|
|
|
|
# options from this mapping.
|
|
|
|
mountOptions:
|
|
|
|
default: defaults,noatime
|
2021-10-18 13:17:13 +00:00
|
|
|
btrfs: defaults,noatime,space_cache,autodefrag,compress=zstd
|
2019-10-28 13:48:02 +00:00
|
|
|
|
|
|
|
# Mount options to use for the EFI System Partition. If not defined, the
|
|
|
|
# *mountOptions* for *vfat* are used, or if that is not set either,
|
|
|
|
# *default* from *mountOptions*.
|
|
|
|
efiMountOptions: umask=0077
|
|
|
|
|
|
|
|
# If a filesystem is on an SSD, add the following options. If a specific
|
|
|
|
# filesystem is listed here, use those options, otherwise no additional
|
|
|
|
# options are set (i.e. there is no *default* like in *mountOptions*).
|
2021-10-18 13:17:13 +00:00
|
|
|
#
|
|
|
|
# This example configuration applies the *discard* option to most
|
|
|
|
# common filesystems on an SSD. This may not be the right option
|
|
|
|
# for your distribution. If you use a systemd timer to trim the
|
|
|
|
# SSD, it may interfere with the *discard* option. Opinions vary
|
|
|
|
# as to whether *discard* is worth the effort -- it depends on
|
|
|
|
# the usage pattern of the disk as well.
|
|
|
|
#
|
|
|
|
# ssdExtraMountOptions:
|
|
|
|
# ext4: discard
|
|
|
|
# jfs: discard
|
|
|
|
# xfs: discard
|
|
|
|
# swap: discard
|
|
|
|
# btrfs: discard,compress=lzo
|
|
|
|
#
|
|
|
|
# The standard configuration applies asynchronous discard support and ssd optimizations to btrfs
|
|
|
|
# and does nothing for other filesystems.
|
2019-10-28 13:48:02 +00:00
|
|
|
ssdExtraMountOptions:
|
2021-10-18 13:17:13 +00:00
|
|
|
btrfs: discard=async,ssd,commit=120
|
2019-10-28 13:48:02 +00:00
|
|
|
|
|
|
|
# Additional options added to each line in /etc/crypttab
|
|
|
|
crypttabOptions: luks
|
|
|
|
# For Debian and Debian-based distributions, change the above line to:
|
|
|
|
# crypttabOptions: luks,keyscript=/bin/cat
|