diff --git a/bundle/bin/rke2-killall.sh b/bundle/bin/rke2-killall.sh index f9db1010cb..6f6c128c35 100755 --- a/bundle/bin/rke2-killall.sh +++ b/bundle/bin/rke2-killall.sh @@ -43,8 +43,7 @@ do_unmount_and_remove() { MOUNTS=$(printf ${MOUNTS} | grep "^$1" | sort -r) if [ -n "${MOUNTS}" ]; then set -x - umount ${MOUNTS} - rm -rf --one-file-system ${MOUNTS} + umount -- ${MOUNTS} && rm -rf --one-file-system -- ${MOUNTS} else set -x fi