-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep re-creating the root directory for each build
Fixes: fedora-copr/copr#2916 Closes: #1227
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
releng/release-notes-next/create-rootdir-for-each-build.bugfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
The [commit#1e13b56ce3c0efdf81][] caused that not only basedir was | ||
created just once per one Mock command, but that also rootdir was. | ||
Since Mock automatically unmounts rootdir **after each build** and then | ||
also **removes the rootdir** directory to finish the cleanup tasks (at | ||
least if tmpfs or other "root" plugin is in use, --resultdir is in | ||
use, ...), subsequent builds failed to re-mount the rootdir with, e.g.: | ||
|
||
ERROR: Command failed: | ||
$ mount -n -t tmpfs -o mode=0755 -o nr_inodes=0 -o size=140g mock_chroot_tmpfs /var/lib/mock/fedora-37-x86_64-1694797505.326095/root | ||
|
||
This caused problems e.g. [in Fedora Copr][copr_issue#2916] where each | ||
Mock build is actually a two-step build done like: | ||
|
||
mock --spec foo.spec --sources . --resultdir ... | ||
|
||
So Mock first builds SRPM, and then builds RPMs (two builds in one run). |