Update install.sh

Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
Joakim Roubert 2019-10-01 08:49:01 +02:00 committed by GitHub
parent ce388e3788
commit 2548f3ebaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -483,12 +483,10 @@ do_unmount '/run/k3s'
do_unmount '/var/lib/rancher/k3s'
# Delete network interface(s) that match 'master cni0'
while read ignore iface ignore; do
ip link show | grep 'master cni0' | while read ignore iface ignore; do
iface=${iface%%@*}
[ -z "$iface" ] || ip link delete $iface
done <<-EOF
$(ip link show | grep 'master cni0')
EOF
done
ip link delete cni0
ip link delete flannel.1
rm -rf /var/lib/cni/