2017-07-10 17:57:05 +02:00
|
|
|
# Unsquash / unpack a filesystem. Multiple sources are supported, and
|
|
|
|
# they may be squashed or plain filesystems.
|
|
|
|
#
|
|
|
|
# Configuration:
|
|
|
|
#
|
|
|
|
# from globalstorage: rootMountPoint
|
|
|
|
# from job.configuration: the path to where to mount the source image(s)
|
|
|
|
# for copying an ordered list of unpack mappings for image file <->
|
|
|
|
# target dir relative to rootMountPoint.
|
|
|
|
|
2014-08-19 11:30:59 +02:00
|
|
|
---
|
2017-07-10 17:57:05 +02:00
|
|
|
# Each list item is unpacked, in order, to the target system.
|
2019-09-30 16:23:07 +02:00
|
|
|
#
|
2017-07-10 17:57:05 +02:00
|
|
|
# Each list item has the following attributes:
|
|
|
|
# source: path relative to the live / intstalling system to the image
|
2019-09-30 16:23:07 +02:00
|
|
|
# sourcefs: the type of the source files; valid entries are
|
|
|
|
# - *ext4* (copies the filesystem contents)
|
|
|
|
# - *squashfs* (unsquashes)
|
|
|
|
# - *file* (copies a file or directory)
|
|
|
|
# - (may be others if mount supports it)
|
2017-07-10 17:57:05 +02:00
|
|
|
# destination: path relative to rootMountPoint (so in the target
|
2019-09-30 17:31:29 +02:00
|
|
|
# system) where this filesystem is unpacked. It may be an
|
|
|
|
# empty string, which effectively is / (the root) of the target
|
|
|
|
# system.
|
|
|
|
#
|
|
|
|
# EXAMPLES
|
|
|
|
#
|
2017-08-23 12:57:11 +02:00
|
|
|
# Usually you list a filesystem image to unpack; you can use
|
|
|
|
# squashfs or an ext4 image.
|
|
|
|
#
|
|
|
|
# - source: "/path/to/filesystem.sqfs"
|
|
|
|
# sourcefs: "squashfs"
|
|
|
|
# destination: ""
|
2019-09-30 17:31:29 +02:00
|
|
|
#
|
|
|
|
# Multiple entries are unpacked in-order
|
2017-08-23 12:57:11 +02:00
|
|
|
#
|
|
|
|
# - source: "/path/to/another/filesystem.img"
|
|
|
|
# sourcefs: "ext4"
|
|
|
|
# destination: ""
|
2019-09-30 17:31:29 +02:00
|
|
|
# - source: "/path/to/another/filesystem2.img"
|
|
|
|
# sourcefs: "ext4"
|
|
|
|
# destination: "/usr/lib/extra"
|
2017-08-23 12:57:11 +02:00
|
|
|
#
|
|
|
|
# You can list filesystem source paths relative to the Calamares run
|
|
|
|
# directory, if you use -d (this is only useful for testing, though).
|
2019-09-30 17:31:29 +02:00
|
|
|
#
|
2019-09-30 16:23:07 +02:00
|
|
|
# - source: ./example.sqfs
|
|
|
|
# sourcefs: squashfs
|
|
|
|
# destination: ""
|
2019-09-30 17:31:29 +02:00
|
|
|
#
|
|
|
|
# You can list individual files (copied one-by-one), or directories
|
|
|
|
# (the files inside this directory are copied directly to the destination,
|
|
|
|
# so no "dummycpp/" subdirectory is created in this example).
|
|
|
|
# Do note that the target directory must exist already (e.g. from
|
|
|
|
# extracting some other filesystem).
|
|
|
|
#
|
|
|
|
# - source: ../CHANGES
|
|
|
|
# sourcefs: file
|
|
|
|
# destination: "/tmp/derp"
|
|
|
|
# - source: ../src/modules/dummycpp
|
|
|
|
# sourcefs: file
|
|
|
|
# destination: "/tmp/derp"
|
2019-10-11 15:36:39 +02:00
|
|
|
#
|
|
|
|
# The *destination* and *source* are handed off to rsync, so the semantics
|
|
|
|
# of trailing slashes apply. In order to *rename* a file as it is
|
|
|
|
# copied, specify one single file (e.g. CHANGES) and a full pathname
|
|
|
|
# for its destination name, as in the example below.
|
2019-09-30 17:31:29 +02:00
|
|
|
|
|
|
|
unpack:
|
2019-09-30 16:23:07 +02:00
|
|
|
- source: ../CHANGES
|
|
|
|
sourcefs: file
|
2019-10-11 15:36:39 +02:00
|
|
|
destination: "/tmp/changes.txt"
|