mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Update install.sh
Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
parent
ce388e3788
commit
2548f3ebaa
@ -483,12 +483,10 @@ do_unmount '/run/k3s'
|
|||||||
do_unmount '/var/lib/rancher/k3s'
|
do_unmount '/var/lib/rancher/k3s'
|
||||||
|
|
||||||
# Delete network interface(s) that match 'master cni0'
|
# 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%%@*}
|
iface=${iface%%@*}
|
||||||
[ -z "$iface" ] || ip link delete $iface
|
[ -z "$iface" ] || ip link delete $iface
|
||||||
done <<-EOF
|
done
|
||||||
$(ip link show | grep 'master cni0')
|
|
||||||
EOF
|
|
||||||
ip link delete cni0
|
ip link delete cni0
|
||||||
ip link delete flannel.1
|
ip link delete flannel.1
|
||||||
rm -rf /var/lib/cni/
|
rm -rf /var/lib/cni/
|
||||||
|
Loading…
Reference in New Issue
Block a user