~ltrager/maas-images/static_yum_mirror

Viewing all changes in revision 365.

  • Committer: Scott Moser
  • Date: 2017-05-05 15:15:54 UTC
  • mfrom: (360.3.3 trunk.use-unshare)
  • Revision ID: smoser@ubuntu.com-20170505151554-ige9gd6mxds6f4fu
When using chroot unshare pid namespace when possible.

This adds a helper 'unshare-pidns' that invokes unshare --pid --fork
if it is available. It will not fail when it is not available though
as it is not expected to be present on trusty and precise.

The reason for this is so any unexpected children of the chroot process
will be killed allowing unmount to succeed.
See LP: #1645680 for example of such issues.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: