committing changes in /etc made by "-bash"
Package changes:
This commit is contained in:
@@ -33,7 +33,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
skip_if_unavailable=False
|
||||
|
||||
@@ -43,7 +43,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[powertools]
|
||||
@@ -52,7 +52,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[extras]
|
||||
@@ -61,7 +61,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[devel]
|
||||
@@ -70,7 +70,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/$basearch/os/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[baseos-debuginfo]
|
||||
@@ -79,7 +79,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[appstream-debuginfo]
|
||||
@@ -88,7 +88,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debugi
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[powertools-debuginfo]
|
||||
@@ -97,7 +97,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-debug
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[extras-debuginfo]
|
||||
@@ -106,7 +106,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[devel-debuginfo]
|
||||
@@ -115,7 +115,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[baseos-source]
|
||||
@@ -124,7 +124,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[appstream-source]
|
||||
@@ -133,7 +133,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[powertools-source]
|
||||
@@ -142,7 +142,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools-sourc
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/PowerTools/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[extras-source]
|
||||
@@ -151,7 +151,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
[devel-source]
|
||||
@@ -160,7 +160,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-8
|
||||
fastestmirror=1
|
||||
|
||||
"""
|
||||
|
||||
166
mock/templates/almalinux-9.tpl
Normal file
166
mock/templates/almalinux-9.tpl
Normal file
@@ -0,0 +1,166 @@
|
||||
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 shadow-utils tar unzip util-linux which xz'
|
||||
config_opts['dist'] = 'el9.alma' # only useful for --resultdir variable subst
|
||||
config_opts['releasever'] = '9'
|
||||
config_opts['package_manager'] = 'dnf'
|
||||
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
|
||||
config_opts['bootstrap_image'] = 'quay.io/almalinux/almalinux:9'
|
||||
|
||||
|
||||
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 }}
|
||||
|
||||
|
||||
[baseos]
|
||||
name=AlmaLinux $releasever - BaseOS
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
skip_if_unavailable=False
|
||||
|
||||
[appstream]
|
||||
name=AlmaLinux $releasever - AppStream
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[crb]
|
||||
name=AlmaLinux $releasever - CRB
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/CRB/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[extras]
|
||||
name=AlmaLinux $releasever - Extras
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/$basearch/os/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[devel]
|
||||
name=AlmaLinux $releasever - Devel (WARNING: UNSUPPORTED - FOR BUILDROOT USE ONLY!)
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/$basearch/os/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[baseos-debuginfo]
|
||||
name=AlmaLinux $releasever - BaseOS debuginfo
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[appstream-debuginfo]
|
||||
name=AlmaLinux $releasever - AppStream debuginfo
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[crb-debuginfo]
|
||||
name=AlmaLinux $releasever - CRB debuginfo
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/CRB/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[extras-debuginfo]
|
||||
name=AlmaLinux $releasever - Extras debuginfo
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[devel-debuginfo]
|
||||
name=AlmaLinux $releasever - Devel debuginfo
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel-debuginfo
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/debug/$basearch/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[baseos-source]
|
||||
name=AlmaLinux $releasever - BaseOS Source
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[appstream-source]
|
||||
name=AlmaLinux $releasever - AppStream Source
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[crb-source]
|
||||
name=AlmaLinux $releasever - CRB Source
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/CRB/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[extras-source]
|
||||
name=AlmaLinux $releasever - Extras Source
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
[devel-source]
|
||||
name=AlmaLinux $releasever - Devel Source
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/devel-source
|
||||
# baseurl=https://repo.almalinux.org/almalinux/$releasever/devel/Source/
|
||||
enabled=0
|
||||
gpgcheck=1
|
||||
gpgkey=file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
|
||||
fastestmirror=1
|
||||
|
||||
"""
|
||||
65
mock/templates/rhel-9.tpl
Normal file
65
mock/templates/rhel-9.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
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 shadow-utils tar unzip util-linux which xz'
|
||||
config_opts['releasever'] = '9'
|
||||
config_opts['dist'] = 'el{{ releasever }}' # only useful for --resultdir variable subst
|
||||
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
|
||||
config_opts['package_manager'] = 'dnf'
|
||||
config_opts['bootstrap_image'] = 'registry.access.redhat.com/ubi{{ releasever }}/ubi'
|
||||
config_opts['description'] = 'RHEL {{ releasever }}'
|
||||
|
||||
config_opts['dnf_install_command'] += ' subscription-manager'
|
||||
config_opts['yum_install_command'] += ' subscription-manager'
|
||||
|
||||
config_opts['root'] = 'rhel-{{ releasever }}-{{ target_arch }}'
|
||||
|
||||
config_opts['redhat_subscription_required'] = True
|
||||
|
||||
config_opts['dnf.conf'] = """
|
||||
[main]
|
||||
keepcache=1
|
||||
debuglevel=2
|
||||
reposdir=/dev/null
|
||||
logfile=/var/log/yum.log
|
||||
retries=20
|
||||
obsoletes=1
|
||||
gpgcheck=1
|
||||
assumeyes=1
|
||||
syslog_ident=mock
|
||||
syslog_device=
|
||||
install_weak_deps=0
|
||||
metadata_expire=0
|
||||
best=1
|
||||
module_platform_id=platform:el{{ releasever }}
|
||||
protected_packages=
|
||||
user_agent={{ user_agent }}
|
||||
|
||||
# repos
|
||||
[baseos]
|
||||
name = Red Hat Enterprise Linux - BaseOS
|
||||
baseurl = https://cdn.redhat.com/content/dist/rhel9/$releasever/$basearch/baseos/os/
|
||||
sslverify = 1
|
||||
sslcacert = /etc/rhsm/ca/redhat-uep.pem
|
||||
sslclientkey = /etc/pki/entitlement/{{ redhat_subscription_key_id }}-key.pem
|
||||
sslclientcert = /etc/pki/entitlement/{{ redhat_subscription_key_id }}.pem
|
||||
gpgkey = file:///usr/share/distribution-gpg-keys/redhat/RPM-GPG-KEY-redhat{{ releasever }}-release
|
||||
skip_if_unavailable=False
|
||||
|
||||
[appstream]
|
||||
name = Red Hat Enterprise Linux - AppStream
|
||||
baseurl = https://cdn.redhat.com/content/dist/rhel9/$releasever/$basearch/appstream/os/
|
||||
sslverify = 1
|
||||
sslcacert = /etc/rhsm/ca/redhat-uep.pem
|
||||
sslclientkey = /etc/pki/entitlement/{{ redhat_subscription_key_id }}-key.pem
|
||||
sslclientcert = /etc/pki/entitlement/{{ redhat_subscription_key_id }}.pem
|
||||
gpgkey = file:///usr/share/distribution-gpg-keys/redhat/RPM-GPG-KEY-redhat{{ releasever }}-release
|
||||
skip_if_unavailable=False
|
||||
|
||||
[codeready-builder]
|
||||
name = Red Hat Enterprise Linux - CodeReady Linux Builder
|
||||
baseurl = https://cdn.redhat.com/content/dist/rhel9/$releasever/$basearch/codeready-builder/os/
|
||||
sslverify = 1
|
||||
sslcacert = /etc/rhsm/ca/redhat-uep.pem
|
||||
sslclientkey = /etc/pki/entitlement/{{ redhat_subscription_key_id }}-key.pem
|
||||
sslclientcert = /etc/pki/entitlement/{{ redhat_subscription_key_id }}.pem
|
||||
gpgkey = file:///usr/share/distribution-gpg-keys/redhat/RPM-GPG-KEY-redhat{{ releasever }}-release
|
||||
skip_if_unavailable=False
|
||||
"""
|
||||
Reference in New Issue
Block a user