From 2548f3ebaa11670dfc3d9888bec6c299e296bd9a Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Tue, 1 Oct 2019 08:49:01 +0200 Subject: [PATCH] Update install.sh Signed-off-by: Joakim Roubert --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 8cb97fd75f..cb479e30dd 100755 --- a/install.sh +++ b/install.sh @@ -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/