Skip to content

Commit

Permalink
Fix LXC deployments, umount kubelet when removing microk8s (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos committed Jul 22, 2020
1 parent a90763a commit e7653bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snap/hooks/remove
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rm -rf ${SNAP_COMMON}/run/containerd/* || true
(cat /proc/mounts | grep ${SNAP_COMMON}/run/containerd | cut -d ' ' -f 2 | xargs umount) || true
(cat /proc/mounts | grep ${SNAP_COMMON}/var/lib/docker | cut -d ' ' -f 2 | xargs umount -l) || true
(cat /proc/mounts | grep ${SNAP_COMMON}/var/run/docker | cut -d ' ' -f 2 | xargs umount) || true
(cat /proc/mounts | grep ${SNAP_COMMON}/var/lib/kubelet | cut -d ' ' -f 2 | xargs umount) || true

if $SNAP/sbin/ip link show cni0
then
Expand Down

0 comments on commit e7653bf

Please sign in to comment.