mirror of
https://github.com/systemd/systemd.git
synced 2025-03-06 00:58:29 +03:00
mkosi: Enable History= option
This option makes mkosi "remember" all the CLI options specified on the command line when building an image. This means they don't need to be specified again when booting the image afterwards or doing any other operation on the image with "mkosi xxx". As an example of how this is useful, currently, when running "mkosi -d opensuse -f" to build an opensuse image and then running "mkosi sandbox -- meson test -C build TEST-86-MULTI-UKI-PROFILE", running the test will try to add virtiofs mounts of the fedora~rawhide build directory on my machine instead of the opensuse one. With the History= option enabled, it will use the opensuse tumbleweed directory as expected. We stop setting --extra-search-path and --output-dir in the integration test wrapper as these are settings that are "remembered" by enabling the History= option.
This commit is contained in:
parent
890e1ad318
commit
75cf5b0d3a
@ -30,6 +30,7 @@ RepartDirectories=mkosi.repart
|
||||
OutputDirectory=build/mkosi.output
|
||||
|
||||
[Build]
|
||||
History=yes
|
||||
ToolsTree=default
|
||||
BuildDirectory=build/mkosi.builddir
|
||||
CacheDirectory=build/mkosi.cache
|
||||
|
@ -481,8 +481,6 @@ def main() -> None:
|
||||
cmd = [
|
||||
args.mkosi,
|
||||
'--directory', os.fspath(args.meson_source_dir),
|
||||
'--output-dir', os.fspath(args.meson_build_dir / 'mkosi.output'),
|
||||
'--extra-search-path', os.fspath(args.meson_build_dir),
|
||||
'--machine', name,
|
||||
'--ephemeral=yes',
|
||||
*(['--forward-journal', journal_file] if journal_file else []),
|
||||
|
Loading…
x
Reference in New Issue
Block a user