flatten,
format_rlimit,
is_centos_variant,
- is_rpm_distribution,
+ is_dnf_distribution,
patch_file,
path_relative_to_cwd,
set_umask,
if args.ssh_port <= 0:
die("--ssh-port must be > 0")
- if args.repo_dirs 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.repo_dirs and not (is_dnf_distribution(args.distribution) or args.distribution == Distribution.arch):
+ die("--repository-directory is only supported on DNF based distributions and Arch")
if args.repo_dirs:
args.repo_dirs = [p.absolute() for p in args.repo_dirs]
if args.qemu_kvm and not qemu_check_kvm_support():
die("Sorry, the host machine does not support KVM acceleration.")
- if args.repositories and not is_rpm_distribution(args.distribution) and args.distribution not in (Distribution.debian, Distribution.ubuntu):
- die("Sorry, the --repositories option is only supported on RPM/Debian based distributions")
+ if args.repositories and not is_dnf_distribution(args.distribution) and args.distribution not in (Distribution.debian, Distribution.ubuntu):
+ die("Sorry, the --repositories option is only supported on DNF/Debian based distributions")
return MkosiConfig(**vars(args))