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

Automatically set may_detach_mounts=1 on startup #34886

Merged
merged 1 commit into from
Sep 20, 2017

Commits on Sep 20, 2017

  1. Automatically set may_detach_mounts=1 on startup

    This is kernel config available in RHEL7.4 based kernels that enables
    mountpoint removal where the mountpoint exists in other namespaces.
    In particular this is important for making this pattern work:
    
    ```
    umount -l /some/path
    rm -r /some/path
    ```
    
    Where `/some/path` exists in another mount namespace.
    Setting this value will prevent `device or resource busy` errors when
    attempting to the removal of `/some/path` in the example.
    
    This setting is the default, and non-configurable, on upstream kernels
    since 3.15.
    
    Signed-off-by: Brian Goff <cpuguy83@gmail.com>
    cpuguy83 committed Sep 20, 2017
    Configuration menu
    Copy the full SHA
    83c2152 View commit details
    Browse the repository at this point in the history