[umount] Fix schema -- prefer *preservefiles* for keeping the log

This commit is contained in:
Adriaan de Groot 2020-08-12 10:05:46 +02:00
parent 2061024a03
commit efab699479
2 changed files with 6 additions and 26 deletions

View File

@ -2,35 +2,15 @@
# #
# This module represents the last part of the installation, the unmounting # This module represents the last part of the installation, the unmounting
# of partitions used for the install. It is also the last place where it # of partitions used for the install. It is also the last place where it
# is possible to copy files to the target system, thus the best place to # is possible to copy files to the target system.
# copy an installation log. #
# The "copy log files" functionality is deprecated; use the *preservefiles*
# module instead, which is more flexible.
# #
# This module has two configuration keys: # This module has two configuration keys:
# srcLog location in the live system where the log is # srcLog location in the live system where the log is
# destLog location in the target system to copy the log # destLog location in the target system to copy the log
# #
# You can either use the default source path (which is
# `/root/.cache/calamares/session.log` ) to copy the regular log,
# or if you want to use the full output of `sudo calamares -d` you will need
# to redirect standard output, for instance in a launcher script or
# in the desktop file.
#
# Example launcher script:
#
# ```
# #!/bin/sh
# sudo /usr/bin/calamares -d > installation.log
# ```
#
# Example desktop line:
#
# ```
# Exec=sudo /usr/bin/calamares -d > installation.log
# ```
#
# If no source and destination are set, no copy is attempted. If the
# copy fails for some reason, a warning is printed but the installation
# does not fail.
--- ---
# example when using the normal Calamares log: # example when using the normal Calamares log:

View File

@ -4,5 +4,5 @@ $id: https://calamares.io/schemas/umount
additionalProperties: false additionalProperties: false
type: object type: object
properties: properties:
"srcLog": { type: str } srcLog: { type: string }
"destLog": { type: str } destLog: { type: string }