From: Daan De Meyer Date: Fri, 19 Aug 2022 10:37:16 +0000 (+0200) Subject: centos: Add check that --netdev is always used with EPEL variants X-Git-Tag: v14~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af7cbca1cae0d13e54fec311698c1cebab4b413;p=thirdparty%2Fmkosi.git centos: Add check that --netdev is always used with EPEL variants --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index a96f5ef76..59228abcd 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -6697,6 +6697,9 @@ def load_args(args: argparse.Namespace) -> MkosiArgs: if args.repos_dir and not (is_rpm_distribution(args.distribution) or args.distribution == Distribution.arch): die("--repository-directory is only supported on RPM based distributions and Arch") + if args.netdev and is_centos_variant(args.distribution) and not is_epel_variant(args.distribution): + die("--netdev is only supported on EPEL centOS variants") + # We set a reasonable umask so that files that are created in the image # will have reasonable permissions. We don't want those permissions to be # influenced by the caller's umask which will be used only for output files.