diff --git a/iso/py/__pycache__/common.cpython-310.pyc b/iso/py/__pycache__/common.cpython-310.pyc deleted file mode 100644 index da4d90c..0000000 Binary files a/iso/py/__pycache__/common.cpython-310.pyc and /dev/null differ diff --git a/iso/py/test.py b/iso/py/test.py deleted file mode 100644 index 871e88e..0000000 --- a/iso/py/test.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python3 - -from common import * -import argparse -from util import Checks - -rlvars = rldict['9'] -r = Checks(rlvars, arch) -r.check_valid_arch() diff --git a/iso/py/test2.py b/iso/py/test2.py deleted file mode 100644 index afda7dc..0000000 --- a/iso/py/test2.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 - -import desert -from attrs import define, field -import typing as t - -CONFIG = { - "8": { - "allowed_arches": ["x86_64", "aarch64"], - "repo_url_list": ["some", "shit", "here"] - }, - "9": { - "allowed_arches": ["x86_64", "aarch64", "ppc64le", "s390x"], - "repo_url_list": ["some", "other", "shit", "here"] - } -} - -@define -class VersionConfig: - allowed_arches: t.List[str] = field() - repo_url_list: t.List[str] = field() - - @allowed_arches.validator - def check(self, attribute, value): - if not all(v in ["x86_64", "aarch64", "ppc64le", "s390x"] for v in value): - raise ValueError("Architecture list does not match") - -def new(version): - schema = desert.schema(VersionConfig) - config = CONFIG[str(version)] - return schema.load(config) - -eight = new(8) -nine = new(9) - -print(eight) -print(eight.allowed_arches) -print(nine) diff --git a/iso/py/util/__pycache__/__init__.cpython-310.pyc b/iso/py/util/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 5b67865..0000000 Binary files a/iso/py/util/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/iso/py/util/__pycache__/check.cpython-310.pyc b/iso/py/util/__pycache__/check.cpython-310.pyc deleted file mode 100644 index 27ff79b..0000000 Binary files a/iso/py/util/__pycache__/check.cpython-310.pyc and /dev/null differ diff --git a/iso/py/util/__pycache__/dnf_utils.cpython-310.pyc b/iso/py/util/__pycache__/dnf_utils.cpython-310.pyc deleted file mode 100644 index b12b1c3..0000000 Binary files a/iso/py/util/__pycache__/dnf_utils.cpython-310.pyc and /dev/null differ diff --git a/iso/py/util/__pycache__/iso_utils.cpython-310.pyc b/iso/py/util/__pycache__/iso_utils.cpython-310.pyc deleted file mode 100644 index 310b077..0000000 Binary files a/iso/py/util/__pycache__/iso_utils.cpython-310.pyc and /dev/null differ diff --git a/iso/sh/common b/iso/sh/common deleted file mode 100644 index 55cab71..0000000 --- a/iso/sh/common +++ /dev/null @@ -1,50 +0,0 @@ -# To be sourced by scripts to use - -# Variables that can be overriden should be noted with optional context. It is -# expected that these values are here in this file (per variable or per set): -# -# * Allowed -# * Allowed with caveats -# * Not Allowed -# * Required - -# Set the Rocky Linux version. -# Override: Required -if [ -z "$RLVER" ]; then - echo "RLVER is not defined." - exit 2 -fi - -# Architecture of the system - Overriding this would be a mistake. Lorax and -# other runroot-like operations should occur on their respective architectures. -# Override: Not Allowed -ARCH="$(uname -p)" - -# Source Major common -# Override: Not Allowed -test -f "$(dirname "$0")/common_${RLVER}" && source "$(dirname "$0")/common_${RLVER}" -if [ "$?" -ne 0 ]; then - echo "Could not source common_${RLVER}" - exit 1 -fi - -DATE_STAMP="$(date +%Y%m%d)" -COMPOSE_ROOT="/mnt/compose/${RLVER}" -COMPOSE_ISO_WORKDIR="${COMPOSE_ROOT}/work/${ARCH}/${DATE_STAMP}" - -# ISO Functions -function build_graft_points() { - echo "" -} - -function build_lorax_source_list() { - echo "" -} - -function build_lorax() { - echo "" -} - -function build_extra_iso() { - echo "" -} diff --git a/iso/sh/common_8 b/iso/sh/common_8 deleted file mode 100644 index b0a0012..0000000 --- a/iso/sh/common_8 +++ /dev/null @@ -1,4 +0,0 @@ -# To be sourced by scripts to use - -# These are the architectures supported for 8 -ARCHES=(x86_64 aarch64) diff --git a/iso/sh/common_9 b/iso/sh/common_9 deleted file mode 100644 index d0cba4f..0000000 --- a/iso/sh/common_9 +++ /dev/null @@ -1,4 +0,0 @@ -# To be sourced by scripts to use - -# These are the architectures supported for 9 -ARCHES=(x86_64 aarch64 ppc64le s390x) diff --git a/mangle/README.md b/mangle/README.md index dbeb5e2..32f15b4 100644 --- a/mangle/README.md +++ b/mangle/README.md @@ -1,7 +1,7 @@ Release Engineering Mangler Accessories -================================================== +======================================= -This contains Mirror Manager mangling tools and other accessories. +This contains mangling tools and other accessories. Scripts ------- @@ -14,3 +14,4 @@ Directories * generators -> A directory of python and bash scripts for pungi/peridot data generation * ipa -> IPA specific scripts and utilities +* versions -> simple version utilities diff --git a/mangle/mock/rl10/rl10-aarch64.cfg b/mangle/mock/rl10/rl10-aarch64.cfg deleted file mode 100644 index 3ba88ea..0000000 --- a/mangle/mock/rl10/rl10-aarch64.cfg +++ /dev/null @@ -1,86 +0,0 @@ -# Generated peridot mock config -config_opts['root'] = 'rocky-10-aarch64' -config_opts['target_arch'] = 'noarch' -config_opts['legal_host_arches'] = ['aarch64','noarch'] -config_opts['chroot_setup_cmd'] = 'install bash glibc-minimal-langpack gnupg2 rpm-build shadow-utils system-release redhat-rpm-config' -config_opts['dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['releasever'] = '10' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock' ] -config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild' -config_opts['use_bootstrap_image'] = False -config_opts['plugin_conf']['rpmautospec_enable'] = True -config_opts['plugin_conf']['rpmautospec_opts'] = { - 'requires': ['rpmautospec'], - 'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'], -} - - -config_opts['plugin_conf']['ccache_enable'] = False -config_opts['plugin_conf']['root_cache_enable'] = False -config_opts['plugin_conf']['yum_cache_enable'] = False -config_opts['rpmbuild_networking'] = True -config_opts['use_host_resolv'] = True -config_opts['print_main_output'] = True - -config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' -config_opts['macros']['%_host'] = 'aarch64-redhat-linux-gnu' -config_opts['macros']['%_host_cpu'] = 'aarch64' -config_opts['macros']['%_vendor'] = "redhat" -config_opts['macros']['%_vendor_host'] = "redhat" - -config_opts['module_setup_commands'] = [] - -config_opts['macros']['%__bootstrap'] = '~bootstrap' -config_opts['macros']['%vendor'] = 'Rocky Enterprise Software Foundation' -config_opts['macros']['%packager'] = 'Rocky Linux Build System (Peridot) ' -config_opts['macros']['%distribution'] = 'Rocky Linux 10.0' -config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['macros']['%rhel'] = '10' -config_opts['files']['usr/lib/rpm/macros.d/macros.dist'] = """ -%__bootstrap ~bootstrap -%vendor Rocky Enterprise Software Foundation -%packager Rocky Linux Build System (Peridot) -%distribution Rocky Linux 10 -%dist %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap} -%rhel 10 - -""" - - -config_opts['dnf.conf'] = """ -[main] -debuglevel=1 -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -keepcache=1 -best=1 -syslog_ident=peridotbuilder -syslog_device= -metadata_expire=0 -install_weak_deps=0 -protected_packages= -reposdir=/dev/null -logfile=/var/log/yum.log -mdpolicy=group:primary -metadata_expire=0 -user_agent=peridotbuilder -module_platform_id=platform:el10 -[yumrepofs_0] -name=Peridot Internal - Yumrepofs 0 -baseurl=https://yumrepofs.build.resf.org/v1/projects/e7b83c0a-b514-4903-b739-6943bbb307f7/repo/all/$arch -gpgcheck=0 -enabled=1 -priority=0 -module_hotfixes=0 -skip_if_unavailable=1 -[peridotexternal_0] -name=Peridot External 0 -baseurl=https://bootstrap9.releng.rockylinux.org/repos_stage1/10.0-BETA/10.0-BETA-bootstrap_$arch/ -gpgcheck=0 -enabled=1 -priority=80 -module_hotfixes=0 -""" diff --git a/mangle/mock/rl10/rl10-ppc64le.cfg b/mangle/mock/rl10/rl10-ppc64le.cfg deleted file mode 100644 index 7bf9e83..0000000 --- a/mangle/mock/rl10/rl10-ppc64le.cfg +++ /dev/null @@ -1,86 +0,0 @@ -# Generated peridot mock config -config_opts['root'] = 'rocky-10-ppc64le' -config_opts['target_arch'] = 'noarch' -config_opts['legal_host_arches'] = ['ppc64le','noarch'] -config_opts['chroot_setup_cmd'] = 'install bash glibc-minimal-langpack gnupg2 rpm-build shadow-utils system-release redhat-rpm-config' -config_opts['dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['releasever'] = '10' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock' ] -config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild' -config_opts['use_bootstrap_image'] = False -config_opts['plugin_conf']['rpmautospec_enable'] = True -config_opts['plugin_conf']['rpmautospec_opts'] = { - 'requires': ['rpmautospec'], - 'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'], -} - - -config_opts['plugin_conf']['ccache_enable'] = False -config_opts['plugin_conf']['root_cache_enable'] = False -config_opts['plugin_conf']['yum_cache_enable'] = False -config_opts['rpmbuild_networking'] = True -config_opts['use_host_resolv'] = True -config_opts['print_main_output'] = True - -config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' -config_opts['macros']['%_host'] = 'ppc64le-redhat-linux-gnu' -config_opts['macros']['%_host_cpu'] = 'ppc64le' -config_opts['macros']['%_vendor'] = "redhat" -config_opts['macros']['%_vendor_host'] = "redhat" - -config_opts['module_setup_commands'] = [] - -config_opts['macros']['%__bootstrap'] = '~bootstrap' -config_opts['macros']['%vendor'] = 'Rocky Enterprise Software Foundation' -config_opts['macros']['%packager'] = 'Rocky Linux Build System (Peridot) ' -config_opts['macros']['%distribution'] = 'Rocky Linux 10.0' -config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['macros']['%rhel'] = '10' -config_opts['files']['usr/lib/rpm/macros.d/macros.dist'] = """ -%__bootstrap ~bootstrap -%vendor Rocky Enterprise Software Foundation -%packager Rocky Linux Build System (Peridot) -%distribution Rocky Linux 10 -%dist %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap} -%rhel 10 - -""" - - -config_opts['dnf.conf'] = """ -[main] -debuglevel=1 -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -keepcache=1 -best=1 -syslog_ident=peridotbuilder -syslog_device= -metadata_expire=0 -install_weak_deps=0 -protected_packages= -reposdir=/dev/null -logfile=/var/log/yum.log -mdpolicy=group:primary -metadata_expire=0 -user_agent=peridotbuilder -module_platform_id=platform:el10 -[yumrepofs_0] -name=Peridot Internal - Yumrepofs 0 -baseurl=https://yumrepofs.build.resf.org/v1/projects/e7b83c0a-b514-4903-b739-6943bbb307f7/repo/all/$arch -gpgcheck=0 -enabled=1 -priority=0 -module_hotfixes=0 -skip_if_unavailable=1 -[peridotexternal_0] -name=Peridot External 0 -baseurl=https://bootstrap9.releng.rockylinux.org/repos_stage1/10.0-BETA/10.0-BETA-bootstrap_$arch/ -gpgcheck=0 -enabled=1 -priority=80 -module_hotfixes=0 -""" diff --git a/mangle/mock/rl10/rl10-s390x.cfg b/mangle/mock/rl10/rl10-s390x.cfg deleted file mode 100644 index d8eb0b3..0000000 --- a/mangle/mock/rl10/rl10-s390x.cfg +++ /dev/null @@ -1,86 +0,0 @@ -# Generated peridot mock config -config_opts['root'] = 'rocky-10-s390x' -config_opts['target_arch'] = 'noarch' -config_opts['legal_host_arches'] = ['s390x','noarch'] -config_opts['chroot_setup_cmd'] = 'install bash glibc-minimal-langpack gnupg2 rpm-build shadow-utils system-release redhat-rpm-config' -config_opts['dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['releasever'] = '10' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock' ] -config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild' -config_opts['use_bootstrap_image'] = False -config_opts['plugin_conf']['rpmautospec_enable'] = True -config_opts['plugin_conf']['rpmautospec_opts'] = { - 'requires': ['rpmautospec'], - 'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'], -} - - -config_opts['plugin_conf']['ccache_enable'] = False -config_opts['plugin_conf']['root_cache_enable'] = False -config_opts['plugin_conf']['yum_cache_enable'] = False -config_opts['rpmbuild_networking'] = True -config_opts['use_host_resolv'] = True -config_opts['print_main_output'] = True - -config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' -config_opts['macros']['%_host'] = 's390x-redhat-linux-gnu' -config_opts['macros']['%_host_cpu'] = 's390x' -config_opts['macros']['%_vendor'] = "redhat" -config_opts['macros']['%_vendor_host'] = "redhat" - -config_opts['module_setup_commands'] = [] - -config_opts['macros']['%__bootstrap'] = '~bootstrap' -config_opts['macros']['%vendor'] = 'Rocky Enterprise Software Foundation' -config_opts['macros']['%packager'] = 'Rocky Linux Build System (Peridot) ' -config_opts['macros']['%distribution'] = 'Rocky Linux 10.0' -config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['macros']['%rhel'] = '10' -config_opts['files']['usr/lib/rpm/macros.d/macros.dist'] = """ -%__bootstrap ~bootstrap -%vendor Rocky Enterprise Software Foundation -%packager Rocky Linux Build System (Peridot) -%distribution Rocky Linux 10 -%dist %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap} -%rhel 10 - -""" - - -config_opts['dnf.conf'] = """ -[main] -debuglevel=1 -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -keepcache=1 -best=1 -syslog_ident=peridotbuilder -syslog_device= -metadata_expire=0 -install_weak_deps=0 -protected_packages= -reposdir=/dev/null -logfile=/var/log/yum.log -mdpolicy=group:primary -metadata_expire=0 -user_agent=peridotbuilder -module_platform_id=platform:el10 -[yumrepofs_0] -name=Peridot Internal - Yumrepofs 0 -baseurl=https://yumrepofs.build.resf.org/v1/projects/e7b83c0a-b514-4903-b739-6943bbb307f7/repo/all/$arch -gpgcheck=0 -enabled=1 -priority=0 -module_hotfixes=0 -skip_if_unavailable=1 -[peridotexternal_0] -name=Peridot External 0 -baseurl=https://bootstrap9.releng.rockylinux.org/repos_stage1/10.0-BETA/10.0-BETA-bootstrap_$arch/ -gpgcheck=0 -enabled=1 -priority=80 -module_hotfixes=0 -""" diff --git a/mangle/mock/rl10/rl10-x86_64.cfg b/mangle/mock/rl10/rl10-x86_64.cfg deleted file mode 100644 index 146f93a..0000000 --- a/mangle/mock/rl10/rl10-x86_64.cfg +++ /dev/null @@ -1,86 +0,0 @@ -# Generated peridot mock config -config_opts['root'] = 'rocky-10-x86_64' -config_opts['target_arch'] = 'noarch' -config_opts['legal_host_arches'] = ['x86_64','noarch'] -config_opts['chroot_setup_cmd'] = 'install bash glibc-minimal-langpack gnupg2 rpm-build shadow-utils system-release redhat-rpm-config' -config_opts['dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['releasever'] = '10' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock' ] -config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild' -config_opts['use_bootstrap_image'] = False -config_opts['plugin_conf']['rpmautospec_enable'] = True -config_opts['plugin_conf']['rpmautospec_opts'] = { - 'requires': ['rpmautospec'], - 'cmd_base': ['/usr/bin/rpmautospec', 'process-distgit'], -} - - -config_opts['plugin_conf']['ccache_enable'] = False -config_opts['plugin_conf']['root_cache_enable'] = False -config_opts['plugin_conf']['yum_cache_enable'] = False -config_opts['rpmbuild_networking'] = True -config_opts['use_host_resolv'] = True -config_opts['print_main_output'] = True - -config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' -config_opts['macros']['%_host'] = 'x86_64-redhat-linux-gnu' -config_opts['macros']['%_host_cpu'] = 'x86_64' -config_opts['macros']['%_vendor'] = "redhat" -config_opts['macros']['%_vendor_host'] = "redhat" - -config_opts['module_setup_commands'] = [] - -config_opts['macros']['%__bootstrap'] = '~bootstrap' -config_opts['macros']['%vendor'] = 'Rocky Enterprise Software Foundation' -config_opts['macros']['%packager'] = 'Rocky Linux Build System (Peridot) ' -config_opts['macros']['%distribution'] = 'Rocky Linux 10.0' -config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' -config_opts['macros']['%rhel'] = '10' -config_opts['files']['usr/lib/rpm/macros.d/macros.dist'] = """ -%__bootstrap ~bootstrap -%vendor Rocky Enterprise Software Foundation -%packager Rocky Linux Build System (Peridot) -%distribution Rocky Linux 10 -%dist %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap} -%rhel 10 - -""" - - -config_opts['dnf.conf'] = """ -[main] -debuglevel=1 -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -keepcache=1 -best=1 -syslog_ident=peridotbuilder -syslog_device= -metadata_expire=0 -install_weak_deps=0 -protected_packages= -reposdir=/dev/null -logfile=/var/log/yum.log -mdpolicy=group:primary -metadata_expire=0 -user_agent=peridotbuilder -module_platform_id=platform:el10 -[yumrepofs_0] -name=Peridot Internal - Yumrepofs 0 -baseurl=https://yumrepofs.build.resf.org/v1/projects/e7b83c0a-b514-4903-b739-6943bbb307f7/repo/all/$arch -gpgcheck=0 -enabled=1 -priority=0 -module_hotfixes=0 -skip_if_unavailable=1 -[peridotexternal_0] -name=Peridot External 0 -baseurl=https://bootstrap9.releng.rockylinux.org/repos_stage1/10.0-BETA/10.0-BETA-bootstrap_$arch/ -gpgcheck=0 -enabled=1 -priority=80 -module_hotfixes=0 -""" diff --git a/mangle/mock/rl8/rl8.10-aarch64.cfg b/mangle/mock/rl8/rl8.10-aarch64.cfg deleted file mode 100644 index 7ba67cd..0000000 --- a/mangle/mock/rl8/rl8.10-aarch64.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-8.10-aarch64' -config_opts['description'] = 'Rocky Linux 8.10' -config_opts['target_arch'] = 'aarch64' -config_opts['legal_host_arches'] = ('aarch64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el8' # only useful for --resultdir variable subst -config_opts['releasever'] = '8' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el8 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-lookahead-build/latest/aarch64 -gpgcheck=0 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 - -""" diff --git a/mangle/mock/rl8/rl8.10-i686.cfg b/mangle/mock/rl8/rl8.10-i686.cfg deleted file mode 100644 index 58aacb4..0000000 --- a/mangle/mock/rl8/rl8.10-i686.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-8.10-i686' -config_opts['description'] = 'Rocky Linux 8.10' -config_opts['target_arch'] = 'i686' -config_opts['legal_host_arches'] = ('i686', 'x86_64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el8' # only useful for --resultdir variable subst -config_opts['releasever'] = '8' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el8 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-lookahead-build/latest/i386 -gpgcheck=0 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 - -""" diff --git a/mangle/mock/rl8/rl8.10-x86_64.cfg b/mangle/mock/rl8/rl8.10-x86_64.cfg deleted file mode 100644 index 31bf43f..0000000 --- a/mangle/mock/rl8/rl8.10-x86_64.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-8.10-x86_64' -config_opts['description'] = 'Rocky Linux 8.10' -config_opts['target_arch'] = 'x86_64' -config_opts['legal_host_arches'] = ('x86_64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el8' # only useful for --resultdir variable subst -config_opts['releasever'] = '8' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el8 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-lookahead-build/latest/x86_64 -gpgcheck=0 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8 - -""" diff --git a/mangle/mock/rl9/rl9.2.cfg b/mangle/mock/rl9/rl9.2.cfg deleted file mode 100644 index d804f62..0000000 --- a/mangle/mock/rl9/rl9.2.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.2-x86_64' -config_opts['description'] = 'Rocky Linux 9.2' -config_opts['target_arch'] = 'x86_64' -config_opts['legal_host_arches'] = ('x86_64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/dff20351-7d36-4f7c-9eea-7f039f5026d0/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/mangle/mock/rl9/rl9.3-aarch64.cfg b/mangle/mock/rl9/rl9.3-aarch64.cfg deleted file mode 100644 index 33ff417..0000000 --- a/mangle/mock/rl9/rl9.3-aarch64.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.3-aarch64' -config_opts['description'] = 'Rocky Linux 9.3' -config_opts['target_arch'] = 'aarch64' -config_opts['legal_host_arches'] = ('aarch64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/mangle/mock/rl9/rl9.3-i686.cfg b/mangle/mock/rl9/rl9.3-i686.cfg deleted file mode 100644 index 50e859c..0000000 --- a/mangle/mock/rl9/rl9.3-i686.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.3-i686' -config_opts['description'] = 'Rocky Linux 9.3' -config_opts['target_arch'] = 'i686' -config_opts['legal_host_arches'] = ('i686', 'x86_64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/mangle/mock/rl9/rl9.3-ppc64le.cfg b/mangle/mock/rl9/rl9.3-ppc64le.cfg deleted file mode 100644 index 078a98f..0000000 --- a/mangle/mock/rl9/rl9.3-ppc64le.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.3-ppc64le' -config_opts['description'] = 'Rocky Linux 9.3' -config_opts['target_arch'] = 'ppc64le' -config_opts['legal_host_arches'] = ('ppc64le',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/mangle/mock/rl9/rl9.3-s390x.cfg b/mangle/mock/rl9/rl9.3-s390x.cfg deleted file mode 100644 index b3d3d5c..0000000 --- a/mangle/mock/rl9/rl9.3-s390x.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.3-s390x' -config_opts['description'] = 'Rocky Linux 9.3' -config_opts['target_arch'] = 's390x' -config_opts['legal_host_arches'] = ('s390x',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/mangle/mock/rl9/rl9.3-x86_64.cfg b/mangle/mock/rl9/rl9.3-x86_64.cfg deleted file mode 100644 index 9fe2604..0000000 --- a/mangle/mock/rl9/rl9.3-x86_64.cfg +++ /dev/null @@ -1,42 +0,0 @@ -config_opts['root'] = 'rocky-9.3-x86_64' -config_opts['description'] = 'Rocky Linux 9.3' -config_opts['target_arch'] = 'x86_64' -config_opts['legal_host_arches'] = ('x86_64',) -config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz' -config_opts['dist'] = 'el9' # only useful for --resultdir variable subst -config_opts['releasever'] = '9' -config_opts['package_manager'] = 'dnf' -config_opts['extra_chroot_dirs'] = [ '/run/lock', ] -config_opts['use_bootstrap_image'] = False - - -config_opts['dnf.conf'] = """ -[main] -keepcache=1 -debuglevel=2 -reposdir=/dev/null -logfile=/var/log/yum.log -retries=20 -obsoletes=1 -gpgcheck=0 -assumeyes=1 -syslog_ident=mock -syslog_device= -metadata_expire=0 -mdpolicy=group:primary -best=1 -install_weak_deps=0 -protected_packages= -module_platform_id=platform:el9 -user_agent={{ user_agent }} - - -[all] -name=Rocky Linux $releasever - All -baseurl=https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/$basearch/ -gpgcheck=1 -enabled=1 -metadata_expire=6h -gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-9 - -""" diff --git a/sync/README.md b/sync/README.md index 4ee5273..1eed725 100644 --- a/sync/README.md +++ b/sync/README.md @@ -5,41 +5,5 @@ These scripts assist in syncing to staging and to prod for releases, whether they are full point releases, simple update releases, or a brand new repository being added. Each script here has a specific purpose. -What to do? ------------ - -When the scripts are being ran, they are usually ran with a specific purpose or -a reason. They are also ran in a certain order. - -The below are common vars files. common_X will override what's in common. - -``` -. -├── common -├── common_8 -``` - -These are for the releases in general. What they do is noted below. - -``` -├── gen-torrents.sh -> Generates torrents for images -├── minor-release-sync-to-staging.sh -> Syncs a minor release to staging -├── prep-staging-8.sh -> Preps staging updates and signs repos -├── sign-repos-only.sh -> Signs the repomd (only) -├── sync-to-prod.sh -> Syncs staging to production -├── sync-to-staging.sh -> Syncs a provided compose to staging -├── sync-to-staging-sig.sh -> Syncs a sig provided compose to staging -``` - -Generally, you will only run `minor-release-sync-to-staging.sh` when a full -minor release is being produced. So for example, if 8.5 has been built out, you -would run that after a compose. `gen-torrents.sh` would be ran shortly after. - -When doing updates, the order of operations (preferably) would be: - -* `sync-to-staging.sh` -* `sync-to-staging-sig.sh` Only if sigs are updated -* `prep-staging-X.sh` -> This is required to ensure the groups, compos, and - module data stay sane. This helps us provide older - packages in the repos. -* `sync-to-prod.sh` -> After the initial testing, it is sent to prod. +Read the [SIG/Core Wiki](https://sig-core.rocky.page/sop/) for more information +and examples of how these scripts are utilized.