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

fix uninstall failure when Btrfs is used as the storage driver #296

Closed
wants to merge 1 commit into from

Commits on Jan 28, 2019

  1. fix uninstall failure when Btrfs is used as the storage driver

    `snap remove microk8s` fails as follows if the storage driver is Btrfs.
    
    ```
    $ sudo snap remove microk8s
    error: cannot perform the following tasks:
    - Remove data for snap "microk8s" (383) (remove /var/snap/microk8s/common/var/lib/docker/btrfs/subvolumes/<id>: operation not permitted)
    ```
    
    It's because Btrfs subvolumes can't be deleted by rmdir() syscall.
    Although this problem disappear if the linux kernel version is
    v4.18 or more, it's better to fix it for older kernel users.
    satoru-takeuchi committed Jan 28, 2019
    Copy the full SHA
    b9b55e3 View commit details
    Browse the repository at this point in the history