4e6492de28
In some cases, we might want to copy a filesystem as if we were using a simple 'dd' command, in order to create an exact copy, down to the block level. This can be useful in particular when working with dm-verity for checking the rootfs integrity: that way, we can make a direct copy of the rootfs and its verity partition and keep the system usable. This patch adds a new 'rawfs' module to calamares, making possible to block-copy a filesystem to a block device. Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
25 lines
971 B
Plaintext
25 lines
971 B
Plaintext
# Configuration for the rawfs module: raw filesystem copy to a block device
|
|
|
|
---
|
|
|
|
# To apply a custom partition layout, it has to be defined this way :
|
|
#
|
|
# targets:
|
|
# - mountPoint: /
|
|
# source: /
|
|
# - mountPoint: /home
|
|
# source: /images/home.img
|
|
# resize: true
|
|
# - mountPoint: /data
|
|
# source: /dev/mmcblk0p3
|
|
#
|
|
# For each target, the following attributes must be defined:
|
|
# * mountPoint: The mount point of the destination device on the installed system
|
|
# The corresponding block device will automatically be identified and used as the
|
|
# destination for the operation
|
|
# * source: The source filesystem; it can be the mount point of a locally (on the
|
|
# live system) mounted filesystem, a disk image, or a block device
|
|
# * resize (optional): Expand the destination filesystem to fill the whole
|
|
# partition at the end of the operation; this works only with ext filesystems
|
|
# for now
|