From 62256a72b5b93137bc425dde38aecc0f88a79e8b Mon Sep 17 00:00:00 2001 From: nazunalika Date: Mon, 6 Jun 2022 15:02:08 -0700 Subject: [PATCH] add nplb to repoclosure list and altarch stuff --- iso/py/build-iso | 7 ++ iso/py/configs/el8.yaml | 18 +++++ iso/py/configs/el9.yaml | 20 ++++++ iso/py/sig/altarch.yaml | 4 ++ iso/py/util/__init__.py | 9 +++ iso/py/util/dnf_utils.py | 8 +++ iso/py/util/iso_utils.py | 152 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 218 insertions(+) create mode 100644 iso/py/build-iso create mode 100644 iso/py/util/iso_utils.py diff --git a/iso/py/build-iso b/iso/py/build-iso new file mode 100644 index 0000000..a8c6f34 --- /dev/null +++ b/iso/py/build-iso @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 +# builds ISO's + +import argparse +from common import * +from util import Checks +from util import IsoBuild diff --git a/iso/py/configs/el8.yaml b/iso/py/configs/el8.yaml index eb12383..c232bb0 100644 --- a/iso/py/configs/el8.yaml +++ b/iso/py/configs/el8.yaml @@ -43,6 +43,16 @@ has_modules: - 'AppStream' - 'PowerTools' + iso_map: + hosts: + x86_64: '' + aarch64: '' + ppc64le: '' + s390x: '' + images: + - dvd1 + - minimal + - boot repoclosure_map: arches: x86_64: '--arch=x86_64 --arch=athlon --arch=i686 --arch=i586 --arch=i486 --arch=i386 --arch=noarch' @@ -68,4 +78,12 @@ NFV: - BaseOS - AppStream + extra_files: + git_repo: 'https://git.rockylinux.org/staging/src/rocky-release.git' + branch: 'r8' + list: + - 'SOURCES/COMMUNITY-CHARTER' + - 'SOURCES/EULA' + - 'SOURCES/LICENSE' + - 'SOURCES/RPM-GPG-KEY-rockyofficial' ... diff --git a/iso/py/configs/el9.yaml b/iso/py/configs/el9.yaml index f655b50..2acb78d 100644 --- a/iso/py/configs/el9.yaml +++ b/iso/py/configs/el9.yaml @@ -50,6 +50,16 @@ has_modules: - 'AppStream' - 'CRB' + iso_map: + hosts: + x86_64: '' + aarch64: '' + ppc64le: '' + s390x: '' + images: + - dvd1 + - minimal + - boot repoclosure_map: arches: x86_64: '--arch=x86_64 --arch=athlon --arch=i686 --arch=i586 --arch=i486 --arch=i386 --arch=noarch' @@ -57,6 +67,7 @@ ppc64le: '--arch=ppc64le --arch=noarch' s390x: '--arch=s390x --arch=noarch' repos: + nplb: [] BaseOS: [] AppStream: - BaseOS @@ -83,4 +94,13 @@ - BaseOS - AppStream - HighAvailability + extra_files: + git_repo: 'https://git.rockylinux.org/staging/src/rocky-release.git' + branch: 'r9' + list: + - 'SOURCES/COMMUNITY-CHARTER' + - 'SOURCES/EULA' + - 'SOURCES/LICENSE' + - 'SOURCES/RPM-GPG-KEY-Rocky-9' + - 'SOURCES/RPM-GPG-KEY-Rocky-9-Testing' ... diff --git a/iso/py/sig/altarch.yaml b/iso/py/sig/altarch.yaml index 734fddd..0eb9d4e 100644 --- a/iso/py/sig/altarch.yaml +++ b/iso/py/sig/altarch.yaml @@ -2,7 +2,11 @@ '8': rockyrpi: project_id: '' + additional_dirs: + - 'images' '9': rockyrpi: project_id: '' + additional_dirs: + - 'images' ... diff --git a/iso/py/util/__init__.py b/iso/py/util/__init__.py index 817cb0d..0cbbf89 100644 --- a/iso/py/util/__init__.py +++ b/iso/py/util/__init__.py @@ -1,3 +1,7 @@ +""" +Imports all of our classes for this local module +""" + from .check import ( Checks, ) @@ -6,6 +10,11 @@ from .dnf_utils import ( RepoSync, ) +from .iso_utils import ( + IsoBuild, + LiveBuild +) + __all__ = [ 'Checks', 'RepoSync' diff --git a/iso/py/util/dnf_utils.py b/iso/py/util/dnf_utils.py index 4948743..46e5cfa 100644 --- a/iso/py/util/dnf_utils.py +++ b/iso/py/util/dnf_utils.py @@ -69,6 +69,7 @@ class RepoSync: self.repos = rlvars['all_repos'] self.multilib = rlvars['provide_multilib'] self.repo = repo + self.extra_files = rlvars['extra_files'] # each el can have its own designated container to run stuff in, # otherwise we'll just default to the default config. @@ -176,6 +177,7 @@ class RepoSync: self.sync(self.repo, sync_root, work_root, log_root, self.arch) if self.fullrun: + self.deploy_extra_files() self.symlink_to_latest() if self.repoclosure: @@ -894,6 +896,12 @@ class RepoSync: for issue in bad_exit_list: self.log.error(issue) + def deploy_extra_files(self): + """ + deploys extra files based on info of rlvars + """ + pass + class SigRepoSync: """ This helps us do reposync operations for SIG's. Do not use this for the diff --git a/iso/py/util/iso_utils.py b/iso/py/util/iso_utils.py new file mode 100644 index 0000000..c19ebc6 --- /dev/null +++ b/iso/py/util/iso_utils.py @@ -0,0 +1,152 @@ +""" +Builds ISO's for Rocky Linux. + +Louis Abel