copr-builders: better split image preparation and booting

This commit is contained in:
Pavel Raiskup 2024-02-28 14:13:48 +01:00
parent e5516210e1
commit 7a9b5ff89a

View file

@ -25,8 +25,8 @@
- name: put infra repos into yum.repos.d
copy: src=files/dnf/infra-tags.repo dest=/etc/yum.repos.d
# when:
# - preparing_image
when:
- preparing_image
- name: put infra stg repos into yum.repos.d if staging
copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d
@ -38,17 +38,15 @@
file:
path: /etc/yum.repos.d/fedora-updates-testing.repo
state: absent
when:
- preparing_image
- name: update the system
dnf:
state: latest
name: "*"
exclude:
# https://bugzilla.redhat.com/show_bug.cgi?id=2047266
# This is important for the AWS images only. Other images (like libvirt,
# IBM Cloud, etc.) are already updated.
- kernel-core
when: preparing_image
when:
- preparing_image
register: system_updated
- name: disable updates-testing, could be restored after update
@ -239,6 +237,8 @@
- name: mount cache filesystem on /var/cache/mock
mount: path=/var/cache/mock state=mounted src=mock_cache_tmpfs fstype=tmpfs opts="size=32G"
when:
- starting_builder
- name: Collect facts about builder hardware
setup:
@ -266,7 +266,6 @@
when:
- starting_builder
- name: detect package versions
package_facts: manager=auto