From: Daan De Meyer Date: Wed, 15 Feb 2023 15:10:38 +0000 (+0100) Subject: Don't require --bootable for --qemu-headless X-Git-Tag: v15~314^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a02407dedeca1492bb00dd4b5f66706f6e2fd9b5;p=thirdparty%2Fmkosi.git Don't require --bootable for --qemu-headless When building initrds, it's valid to want --qemu-headless without --bootable. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 56052dbdf..496c352dc 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2608,9 +2608,6 @@ def load_args(args: argparse.Namespace) -> MkosiConfig: if needs_build(args) and args.verb == Verb.qemu and not args.bootable: die("Images built without the --bootable option cannot be booted using qemu", MkosiNotSupportedException) - if needs_build(args) and args.qemu_headless and not args.bootable: - die("--qemu-headless requires --bootable", MkosiNotSupportedException) - if args.skip_final_phase and args.verb != Verb.build: die("--skip-final-phase can only be used when building an image using 'mkosi build'", MkosiNotSupportedException)