2020-08-21 19:54:36 +02:00
|
|
|
# SPDX-FileCopyrightText: no
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
#
|
2018-06-26 12:50:16 +02:00
|
|
|
# Mount filesystems in the target (generally, before treating the
|
|
|
|
# target as a usable chroot / "live" system). Filesystems are
|
|
|
|
# automatically mounted from the partitioning module. Filesystems
|
|
|
|
# listed here are **extra**. The filesystems listed in *extraMounts*
|
|
|
|
# are mounted in all target systems. The filesystems listed in
|
|
|
|
# *extraMountsEfi* are mounted in the target system **only** if
|
|
|
|
# the host machine uses UEFI.
|
2014-08-05 18:18:57 +02:00
|
|
|
---
|
2018-06-26 12:50:16 +02:00
|
|
|
# Extra filesystems to mount. The key's value is a list of entries; each
|
|
|
|
# entry has four keys:
|
|
|
|
# - device The device node to mount
|
2020-11-06 11:56:29 +01:00
|
|
|
# - fs (optional) The filesystem type to use
|
2018-06-26 12:50:16 +02:00
|
|
|
# - mountPoint Where to mount the filesystem
|
|
|
|
# - options (optional) Extra options to pass to mount(8)
|
|
|
|
#
|
2020-11-06 11:56:29 +01:00
|
|
|
# The device is not mounted if the mountPoint is unset or if the fs is
|
|
|
|
# set to unformatted.
|
|
|
|
#
|
2014-08-05 18:18:57 +02:00
|
|
|
extraMounts:
|
|
|
|
- device: proc
|
|
|
|
fs: proc
|
|
|
|
mountPoint: /proc
|
|
|
|
- device: sys
|
|
|
|
fs: sysfs
|
|
|
|
mountPoint: /sys
|
|
|
|
- device: /dev
|
|
|
|
mountPoint: /dev
|
|
|
|
options: bind
|
2014-11-28 18:02:44 +01:00
|
|
|
- device: tmpfs
|
2014-11-29 05:07:40 +01:00
|
|
|
fs: tmpfs
|
2014-11-28 18:02:44 +01:00
|
|
|
mountPoint: /run
|
2016-11-08 11:17:39 +01:00
|
|
|
- device: /run/udev
|
|
|
|
mountPoint: /run/udev
|
|
|
|
options: bind
|
2014-10-12 19:45:02 +02:00
|
|
|
|
|
|
|
extraMountsEfi:
|
2015-05-01 10:42:06 +02:00
|
|
|
- device: efivarfs
|
|
|
|
fs: efivarfs
|
|
|
|
mountPoint: /sys/firmware/efi/efivars
|
2021-01-26 20:31:33 +01:00
|
|
|
|
2021-02-06 18:54:29 +01:00
|
|
|
# Btrfs subvolumes to create if root filesystem is on btrfs volume.
|
2021-12-02 22:02:14 +01:00
|
|
|
# If *mountpoint* is mounted already to another partition, it is ignored.
|
2021-02-06 18:54:29 +01:00
|
|
|
# Separate subvolume for swapfile is handled separately and automatically.
|
2021-12-02 22:02:14 +01:00
|
|
|
#
|
|
|
|
# It is possible to prevent subvolume creation -- this is likely only relevant
|
|
|
|
# for the root (/) subvolume -- by giving an empty string as a subvolume
|
|
|
|
# name. In this case no subvolume will be created. When using snapper as
|
|
|
|
# a rollback mechanism, it is recommended to **not** create a subvolume
|
|
|
|
# for root.
|
2021-02-06 18:54:29 +01:00
|
|
|
|
2021-01-26 20:31:33 +01:00
|
|
|
btrfsSubvolumes:
|
|
|
|
- mountPoint: /
|
2021-01-26 21:13:29 +01:00
|
|
|
subvolume: /@
|
2021-12-02 22:02:14 +01:00
|
|
|
# As an alternative:
|
|
|
|
#
|
|
|
|
# subvolume: ""
|
2021-01-26 20:31:33 +01:00
|
|
|
- mountPoint: /home
|
2021-01-26 21:13:29 +01:00
|
|
|
subvolume: /@home
|
2021-01-26 20:31:33 +01:00
|
|
|
- mountPoint: /var/cache
|
2021-01-26 21:13:29 +01:00
|
|
|
subvolume: /@cache
|
2021-01-26 20:31:33 +01:00
|
|
|
- mountPoint: /var/log
|
2021-12-02 22:02:14 +01:00
|
|
|
subvolume: /@log
|