Scrub mock chroot before build and force --clean on rebuild
Cancelled jobs can leave the mock chroot in a corrupted state, causing either 'Failed to resolve user mockbuild' or missing directories like /var/lib/mock/custom/root/var. Add --scrub=chroot before build and --clean flag to --rebuild to always start from a fresh chroot.
This commit is contained in:
parent
f8372d9df4
commit
1e507a71fa
1 changed files with 2 additions and 0 deletions
|
|
@ -72,9 +72,11 @@ jobs:
|
|||
"""
|
||||
MOCKEOF
|
||||
cp /tmp/mock-custom.cfg /etc/mock/custom.cfg
|
||||
mock --root custom --scrub=chroot || true
|
||||
mock \
|
||||
--root custom \
|
||||
--resultdir "${HOME}/mock-results" \
|
||||
--clean \
|
||||
--rebuild "${{ env.SRPM_PATH }}"
|
||||
|
||||
- name: Upload RPMs to Forgejo Package Registry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue