Skip to content

Commit

Permalink
Add a change for killall to not unmount server and agent directory
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Jun 25, 2024
1 parent aa4794b commit 8da71f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,11 @@ do_unmount_and_remove() {
set -x
}
# Cleans the server and agent directory
rm -rfv /var/lib/rancher/k3s/server/*
rm -rfv /var/lib/rancher/k3s/agent/*
do_unmount_and_remove '/run/k3s'
do_unmount_and_remove '/var/lib/rancher/k3s'
do_unmount_and_remove '/var/lib/kubelet/pods'
do_unmount_and_remove '/var/lib/kubelet/plugins'
do_unmount_and_remove '/run/netns/cni-'
Expand Down
2 changes: 1 addition & 1 deletion install.sh.sha256sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
696c6a93262b3e1f06a78841b8a82c238a8f17755824c024baad652b18bc92bc install.sh
a99a80e4ef9a4ed1f652b1fb4d211828ebe27719d436d7d6339423449efad675 install.sh

0 comments on commit 8da71f9

Please sign in to comment.