Skip to content

Commit e438e45

Browse files
andrewlukoshkoConan-Kudo
authored andcommitted
configs: set bootstrap_image_ready=True for AlmaLinux configs
AlmaLinux container images now have python3-dnf-plugins-core available by default, so there is no need to update the bootstrap chroot after extracting the image. See AlmaLinux/container-images#88
1 parent 13d2484 commit e438e45

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

mock-core-configs/etc/mock/templates/almalinux-10.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config_opts['releasever_major'] = '10'
55
config_opts['package_manager'] = 'dnf'
66
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
77
config_opts['bootstrap_image'] = 'quay.io/almalinuxorg/almalinux:10'
8+
config_opts['bootstrap_image_ready'] = True
89

910
# deal with special handling for x86_64_v2 variant
1011
config_opts['mirrorlist_arch'] = "{% if repo_arch == 'x86_64_v2' %}?arch=x86_64_v2{% endif %}"

mock-core-configs/etc/mock/templates/almalinux-8.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config_opts['releasever'] = '8'
44
config_opts['package_manager'] = 'dnf'
55
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
66
config_opts['bootstrap_image'] = 'quay.io/almalinuxorg/almalinux:8'
7-
7+
config_opts['bootstrap_image_ready'] = True
88

99
config_opts['dnf.conf'] = """
1010
[main]

mock-core-configs/etc/mock/templates/almalinux-9.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config_opts['releasever'] = '9'
44
config_opts['package_manager'] = 'dnf'
55
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
66
config_opts['bootstrap_image'] = 'quay.io/almalinuxorg/almalinux:9'
7-
7+
config_opts['bootstrap_image_ready'] = True
88

99
config_opts['dnf.conf'] = """
1010
[main]

mock-core-configs/etc/mock/templates/almalinux-kitten-10.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config_opts['releasever_major'] = '10'
55
config_opts['package_manager'] = 'dnf'
66
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
77
config_opts['bootstrap_image'] = 'quay.io/almalinuxorg/almalinux:10-kitten'
8+
config_opts['bootstrap_image_ready'] = True
89

910
# deal with special handling for x86_64_v2 variant
1011
config_opts['mirrorlist_arch'] = "{% if repo_arch == 'x86_64_v2' %}?arch=x86_64_v2{% endif %}"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Set bootstrap_image_ready=True for AlmaLinux configs. AlmaLinux container
2+
images now have python3-dnf-plugins-core available by default, so Mock skips
3+
updating the bootstrap chroot after extracting the image.

0 commit comments

Comments
 (0)