]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't require --bootable for --qemu-headless
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 Feb 2023 15:10:38 +0000 (16:10 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Feb 2023 11:58:33 +0000 (12:58 +0100)
When building initrds, it's valid to want --qemu-headless without
--bootable.

mkosi/__init__.py

index 56052dbdffd72e0d65860d12cb3bc6dc4209578e..496c352dc6b9d28cd28af1f958214675a6557794 100644 (file)
@@ -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)