Skip to content

Commit

Permalink
check if bootstrap buildroot has tpmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
nikromen committed Apr 21, 2024
1 parent 4c92c9e commit 1c18d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mock/py/mockbuild/buildroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def _setup_nosync(self):
multilib = ('x86_64', 's390x')
# ld_preload need to be same as in bootstrap because we call DNF in bootstrap, but
# but it will load nosync from the final chroot
if self.bootstrap_buildroot is not None:
if self.bootstrap_buildroot is not None and self.bootstrap_buildroot.tmpdir is not None:
self.tmpdir = self.bootstrap_buildroot.tmpdir
if not os.path.isdir(self.tmpdir):
os.mkdir(self.tmpdir, 0o700)
Expand Down
3 changes: 3 additions & 0 deletions releng/release-notes-next/fix-mock-init.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock --init occasionally failed because bootstrap buildroot hadn't
set up its temporary directory ([issue#1351][]).

0 comments on commit 1c18d85

Please sign in to comment.