Skip to content
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

mock: use 'private' mount option, not 'rprivate' #536

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mock/py/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ def main():
# add the extra bind mount to the outer chroot
inner_mount = bootstrap_buildroot.make_chroot_path(buildroot.make_chroot_path())

# Hide re-mounted chroot from host by rprivate tmpfs.
# Hide re-mounted chroot from host by private tmpfs.
buildroot.mounts.managed_mounts.append(
FileSystemMountPoint(filetype='tmpfs',
device='hide_root_in_bootstrap',
path=inner_mount,
options="rprivate"))
options="private"))
buildroot.mounts.managed_mounts.append(
BindMountPoint(buildroot.make_chroot_path(), inner_mount,
recursive=True, options="rprivate"))
recursive=True, options="private"))

signal.signal(signal.SIGTERM, partial(handle_signals, buildroot))
signal.signal(signal.SIGPIPE, partial(handle_signals, buildroot))
Expand Down