From 827bacc711304b2415d69d790f3def0f839775a7 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Tue, 23 Nov 2021 08:42:48 -0700 Subject: [PATCH] kmod --- common/include-excludes.conf | 1 + kmod.conf | 58 ++++++++++++++++++++++++++++++++++++ scripts/updates-8-kmod.sh | 19 ++++++++++++ variants-kmod.xml | 11 +++++++ 4 files changed, 89 insertions(+) create mode 100644 kmod.conf create mode 100755 scripts/updates-8-kmod.sh create mode 100644 variants-kmod.xml diff --git a/common/include-excludes.conf b/common/include-excludes.conf index 9c4fe1c..f047d69 100644 --- a/common/include-excludes.conf +++ b/common/include-excludes.conf @@ -36,6 +36,7 @@ filter_packages = [ "*": [ "scap-security-guide-rule-playbooks", "kernel-ml" + "kmod*" ] }), ] diff --git a/kmod.conf b/kmod.conf new file mode 100644 index 0000000..9c815a3 --- /dev/null +++ b/kmod.conf @@ -0,0 +1,58 @@ +release_name = "Rocky Linux kmod" +release_short = "kmod" +release_version = "8" +release_is_layered = False + +variants_file='variants-kmod.xml' +sigkeys = ['6D745A60'] +create_jigdo = False + +pkgset_source='koji' + +pkgset_koji_tag='kmod8-el8-compose' +gather_method = { + '^.*': { # For all variants + 'comps': 'nodeps', # resolve dependencies for packages from comps file + 'module': 'nodeps', # but not for packages from modules + } +} + +gather_backend = 'dnf' +greedy_method = 'build' +koji_profile = "koji" + +check_deps = False + +createrepo_deltas = False +createrepo_database = True +createrepo_c = True +createrepo_checksum = "sha256" +createrepo_use_xz = True +createrepo_num_threads = 8 +createrepo_num_workers = 8 +createrepo_extra_args = ['--distro=cpe:/o:rocky:rocky:8,Rocky Linux 8', '--revision=8.5'] +hashed_directories = True + +filter_packages = [ + ('^extras$', { + '*': [ + '*', + ], + }), +] + +additional_packages = [ + ('^kmod$', { + '*': [ + '*', + ], + }), +] + +createiso_skip = [ + + ('^extras$', { + '*': True, + 'src': True + }), +] diff --git a/scripts/updates-8-kmod.sh b/scripts/updates-8-kmod.sh new file mode 100755 index 0000000..9b567e8 --- /dev/null +++ b/scripts/updates-8-kmod.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +source "$(dirname "$0")/common-8" +TARGET_DIR="/mnt/compose/8" +SHORT=kmod +CONFIG=/etc/pungi-prod/kmod.conf +# Unused for now +OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-8/COMPOSE_ID) +SKIP="--skip-phase buildinstall --skip-phase createiso --skip-phase extra_isos --skip-phase productimg" +LABEL="--production --no-label" +CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $SKIP $LABEL" + +if [ -z "$COMPOSE_ID" ]; then + CMD="$CMD --target-dir=$TARGET_DIR" +else + CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID" +fi + +time $CMD diff --git a/variants-kmod.xml b/variants-kmod.xml new file mode 100644 index 0000000..b0d1631 --- /dev/null +++ b/variants-kmod.xml @@ -0,0 +1,11 @@ + + + + + + aarch64 + ppc64le + x86_64 + + +