]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Rework output related logic 1538/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 May 2023 10:47:24 +0000 (12:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 May 2023 08:26:58 +0000 (10:26 +0200)
commit207af68047ce22777b06878b7efe77491a7c4108
tree176d79aa0045358b0857d0ce57b144ffb21057f7
parent648476fabc4227ae430e3a4d2b982fee56b8d6b6
Rework output related logic

- Let's store the output as a "base" name without any suffixes from
which we construct all other output paths.
- Let's not allow --output to be specified as a path anymore and
always put it in the configured output directory.
- Let's return all output paths as strings instead of paths. As
strings, we'll get typing errors if we try to use these as paths
without joining them with a directory first, which can be either the
output directory or the staging directory.
- Let's always create a symlink from the "base" name to the full
output path so it can be referred to regardless of the output
format, compression or image version that's used.
- Let's make sure we compress split partitions if requested
mkosi/__init__.py
mkosi/config.py