respectively.
- `KernelModulesIncludeHost=` and `KernelModulesInitrdIncludeHost=` are
now deprecated.
+- Added `mkosi dependencies` to output the list of packages required by
+ mkosi to build and boot images.
## v22
if args.verb == Verb.bump:
return bump_image_version()
+ if args.verb == Verb.dependencies:
+ _, [deps] = parse_config(["--directory", "", "--include=mkosi-tools", "build"], resources=resources)
+
+ for p in deps.packages:
+ print(p)
+
+ return
+
if all(config == Config.default() for config in images):
die("No configuration found",
hint="Make sure you're running mkosi from a directory with configuration files")
journalctl = enum.auto()
coredumpctl = enum.auto()
burn = enum.auto()
+ dependencies = enum.auto()
def supports_cmdline(self) -> bool:
return self in (
`mkosi [options…] documentation`
+`mkosi [options…] dependencies`
+
`mkosi [options…] help`
# DESCRIPTION
markdown file `mkosi/resources/mkosi.md` e.g via
`pandoc -t man -s -o mkosi.1 mkosi.md`.
+`dependencies`
+: Output the list of packages required by mkosi to build and boot
+ images.
+
+ This list can be piped directly to a package manager to install the
+ packages. For example, if the host system uses the dnf package
+ manager, the packages could be installed as follows:
+
+ ```sh
+ mkosi dependencies | xargs -d '\n' dnf install
+ ```
+
`help`
: This verb is equivalent to the `--help` switch documented below: it
shows a brief usage explanation.