forked from rpm-software-management/mock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No per-command bootstrap mount leftovers
The d4c1269 commit broke this use-case: $ mock --chain .... $ mock --scrub=chroot $ mock --scrub=bootstrap The problem is that --chain always creates a host-local temporary repository (directory) for built results, which is also bind-mounted to the bootstrap chroot (so the inner packager may use the built results). The commit started modifying bootstrap's dnf.conf, thus it added a new bind-mount that never got unmounted. Complements: d4c1269 Relates: rpm-software-management#1414 Relates: rpm-software-management#1286
- Loading branch information
Showing
4 changed files
with
24 additions
and
3 deletions.
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
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
7 changes: 7 additions & 0 deletions
7
releng/release-notes-next/umount-temp-dirs-from-bootstrap.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,7 @@ | ||
Mock needs to bind-mount (e.g., for `--chain` or for the `--addrepo | ||
file:///local/repo` cases) additional repo directories from host to the | ||
bootstrap chroot. These directories though were not umounted automatically | ||
before - this prevented Mock from doing appropriate `--scrub=bootstrap` if the | ||
set of directories changed between the Mock calls (i.e. `--scrub=bootstrap` | ||
without `--addrepo`). This bug was present in Mock <= 5.6, but after | ||
[issue#1414][] it become exposed to our testsuite. |