-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check if bootstrap buildroot has tpmdir #1362
Conversation
@@ -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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on the need for 75e3f8a, we may either update the _init_locked()
fallback, or we can stop sharing the directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I do not remember. The only clue for today's-us is the comment above the code and the referenced issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that what is happening is:
- one mock process initializes the bootstrap chroot and buildroot, and has them "locked"
- another mock process tries to initialize bootstrap, but fails to lock ... so it doesn't initialize the
tmptdir
value for bootstrap, so the buildroot'sbootstrap_buildroot.tmpdir
value is None later
The commit 7b40a26 relates to this because with that we started sharing tmpdir
directory for bootstrap and target chroot's (both Buildroot's have the same .tmpdir
value), the question is whether we need that.
The .tmpdir
is only used by nosync
logic, and nosync is broken. So it is quite complicated to fix at this point in time.
The problem with tmpdir is still painful, but since the nosync.rpm package is broken - it is pretty hard to debug and confirm we fixed something. Let's delay the fix till nosync.rpm is fixed. |
Fixes #1351