[unpackfs] fix merge

This commit is contained in:
Adriaan de Groot 2017-07-10 11:57:05 -04:00 committed by Philip
parent d6d8e73532
commit 71d08a89a9
2 changed files with 17 additions and 16 deletions

View File

@ -263,22 +263,7 @@ class UnpackOperation:
def run(): def run():
""" """
Unsquashes filesystem from given image file. Unsquash filesystem.
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, e.g.:
configuration:
unpack:
- source: "/path/to/filesystem.img"
sourcefs: "ext4"
destination: ""
- source: "/path/to/another/filesystem.sqfs"
sourcefs: "squashfs"
destination: ""
:return:
""" """
PATH_PROCFS = '/proc/filesystems' PATH_PROCFS = '/proc/filesystems'

View File

@ -1,5 +1,21 @@
# 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.
--- ---
unpack: unpack:
# Each list item is unpacked, in order, to the target system.
# Each list item has the following attributes:
# source: path relative to the live / intstalling system to the image
# sourcefs: ext4 or squashfs (may be others if mount supports is)
# destination: path relative to rootMountPoint (so in the target
# system) where this filesystem is unpacked.
- source: "_root-image_" - source: "_root-image_"
sourcefs: "squashfs" sourcefs: "squashfs"
destination: "" destination: ""