]> git.ipfire.org Git - thirdparty/systemd.git/commit
import: add new "--direct" mode + add controls for turning certain features on/off
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jan 2021 16:40:51 +0000 (17:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Aug 2021 08:08:58 +0000 (10:08 +0200)
commitd32a5841fb1aabc0e2fd138d78b5f66d31b3ba77
tree43da4bbf04be82965f3a4f4657e8fd03ecd96ca1
parent235be6bcea86304e7538d1ff720b14beca2914e8
import: add new "--direct" mode + add controls for turning certain features on/off

This reworks/modernizes the tar/raw import logic and adds the following
new features:

- Adds the ability to control btrfs subvol and quota behaviour which was
  previously always on via an env var and cmdline arg

- Adds control whether to sync() stuff after writing it, similar via env
  var + cmdline arg

- Similar, the QCOW2 unpacking logic that was previously the implied
  default may now be controlled via env var + cmdline arg.

- adds a "direct" mode. In this mode, the systemd-import tool can be
  used as a simple tool for decompressing/unpacking/installing arbitrary
  files, without all the additional meta data and auxiliary resources,
  i.e.  outside of the immediate disk image context. Via the new
  --offset= and --size-max= switches the downloaded data can be written
  to specific locations of a file (which is particularly useful to use
  the tool to download fs images and write them to a partition location
  before actually creating the partition).

We'll later use the latter feature for "sysupdate" concept, where images
can be directly be written to partitions. That way the systemd-import
binary will be used as backend for both "systemd-importd" and
"systemd-sysupdate" and share most of the same code.
src/import/import-common.c
src/import/import-common.h
src/import/import-raw.c
src/import/import-raw.h
src/import/import-tar.c
src/import/import.c