From: Daan De Meyer Date: Wed, 29 Mar 2023 10:04:12 +0000 (+0200) Subject: Always use mkosi.extra/ and mkosi.skeleton/ if they exist X-Git-Tag: v15~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af1fe54805c84bb09e80bb585399121946fec701;p=thirdparty%2Fmkosi.git Always use mkosi.extra/ and mkosi.skeleton/ if they exist These should be additive instead of only being used when no explicit extra/skeleton trees are configured. --- diff --git a/NEWS.md b/NEWS.md index 43075d94b..5c6a36e15 100644 --- a/NEWS.md +++ b/NEWS.md @@ -58,6 +58,8 @@ runtime. Use the new `--qemu-gui` option to start qemu in its graphical interface. - Removed `--netdev`. Can be replaced by manually installing systemd-networkd, putting a network file in the image and enabling systemd-networkd. +- If `mkosi.extra/` or `mkosi.skeleton/` exist, they are now always used instead of only when no explicit + extra/skeleton trees are defined. ## v14 diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 345a45a85..fd32be390 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2161,10 +2161,6 @@ def parse_boolean(s: str) -> bool: def find_extra(args: argparse.Namespace) -> None: - - if len(args.extra_trees) > 0: - return - if os.path.isdir("mkosi.extra"): args.extra_trees.append((Path("mkosi.extra"), None)) if os.path.isfile("mkosi.extra.tar"): @@ -2172,10 +2168,6 @@ def find_extra(args: argparse.Namespace) -> None: def find_skeleton(args: argparse.Namespace) -> None: - - if len(args.skeleton_trees) > 0: - return - if os.path.isdir("mkosi.skeleton"): args.skeleton_trees.append((Path("mkosi.skeleton"), None)) if os.path.isfile("mkosi.skeleton.tar"):