k3s/cmd/kubeadm
Ed Bartosh 48a961cfa2 kubeadm: properly umount dirs in /var/lib/kubelet
'kubeadm reset' uses incorrect way of unmounting /var/lib/kubelet
directories. It queries /proc/mounts for /var/lib/kubelet mount point.
If /var/lib/kubelet directory is also mounted it makes 'kubelet reset'
to unmount it too, which is incorrect. It also makes it fail as it
can't unmount /var/lib/kubelet before unmounting mounts inside it.

Fixed by querying /var/lib/kubelet/ instead of /var/lib/kubelet.
This should exclude /var/lib/kubelet from the query results even if
it's mounted.

Fixes: kubernetes/kubeadm#1294
2018-12-03 18:45:52 +02:00
..
app kubeadm: properly umount dirs in /var/lib/kubelet 2018-12-03 18:45:52 +02:00
test kubeadm: Bump minimum Kubernetes version to v1.12 2018-11-20 16:21:49 +02:00
.import-restrictions Move from glog to klog 2018-11-10 07:50:31 -05:00
BUILD Move from glog to klog 2018-11-10 07:50:31 -05:00
OWNERS Update kubeadm OWNERS file 2018-11-29 13:12:49 +02:00
kubeadm.go Move from glog to klog 2018-11-10 07:50:31 -05:00