2020-08-21 19:54:36 +02:00
|
|
|
# SPDX-FileCopyrightText: no
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
#
|
2018-05-19 15:04:14 +02:00
|
|
|
# Configuration for the preserve-files job
|
|
|
|
#
|
|
|
|
# The *files* key contains a list of files to preserve. Each element of
|
|
|
|
# the list should have one of these forms:
|
|
|
|
#
|
|
|
|
# - an absolute path (probably within the host system). This will be preserved
|
|
|
|
# as the same path within the target system (chroot). If, globally, dontChroot
|
|
|
|
# is true, then these items are ignored (since the destination is the same
|
|
|
|
# as the source).
|
|
|
|
# - a map with a *dest* key. The *dest* value is a path interpreted in the
|
2021-12-13 14:51:42 +01:00
|
|
|
# target system (if the global *dontChroot* is true, then the host is the
|
|
|
|
# target as well). Relative paths are not recommended. There are three
|
|
|
|
# possible other keys in the map:
|
2018-05-19 15:04:14 +02:00
|
|
|
# - *from*, which must have one of the values, below; it is used to
|
|
|
|
# preserve files whose pathname is known to Calamares internally.
|
|
|
|
# - *src*, to refer to a path interpreted in the host system. Relative
|
|
|
|
# paths are not recommended, and are interpreted relative to where
|
|
|
|
# Calamares is being run.
|
2018-10-01 11:06:42 +02:00
|
|
|
# - *perm*, is a colon-separated tuple of <user>:<group>:<mode>
|
|
|
|
# where <mode> is in octal (e.g. 4777 for wide-open, 0400 for read-only
|
|
|
|
# by owner). If set, the file's ownership and permissions are set to
|
|
|
|
# those values within the target system; if not set, no permissions
|
|
|
|
# are changed.
|
2021-12-13 14:51:42 +01:00
|
|
|
# Exactly one of the two source keys (either *from* or *src*) must be set.
|
2018-05-23 15:09:03 +02:00
|
|
|
#
|
2021-12-13 14:51:42 +01:00
|
|
|
# The target path (*dest*) is modified as follows:
|
|
|
|
# - `@@ROOT@@` is replaced by the path to the target root (may be /).
|
|
|
|
# There is never any reason to use this, since the *dest* is already
|
|
|
|
# interpreted in the target system.
|
2018-05-23 15:09:03 +02:00
|
|
|
# - `@@USER@@` is replaced by the username entered by on the user
|
|
|
|
# page (may be empty, for instance if no user page is enabled)
|
2018-05-19 15:04:14 +02:00
|
|
|
#
|
|
|
|
# Special values for the key *from* are:
|
2020-10-04 00:38:20 +02:00
|
|
|
# - *log*, for the complete log file (up to the moment the preservefiles
|
|
|
|
# module is run),
|
2021-12-13 14:51:42 +01:00
|
|
|
# - *config*, for a JSON dump of the contents of global storage.
|
|
|
|
# Note that this may contain sensitive information, and should be
|
|
|
|
# given restrictive permissions.
|
|
|
|
#
|
|
|
|
#
|
2018-05-19 15:04:14 +02:00
|
|
|
files:
|
|
|
|
- from: log
|
2021-12-11 18:11:45 +01:00
|
|
|
dest: /var/log/Calamares.log
|
|
|
|
perm: root:wheel:600
|
2018-05-19 15:04:14 +02:00
|
|
|
- from: config
|
2021-12-12 01:22:22 +01:00
|
|
|
dest: /var/log/Calamares-install.json
|
2021-12-11 18:11:45 +01:00
|
|
|
perm: root:wheel:600
|
2018-10-01 11:31:54 +02:00
|
|
|
|
|
|
|
# The *perm* key contains a default value to apply to all files listed
|
|
|
|
# above that do not have a *perm* key of their own. If not set,
|
|
|
|
# root:root:0400 (highly restrictive) is used.
|
|
|
|
#
|
|
|
|
# perm: "root:root:0400"
|