mirror of https://github.com/k3s-io/k3s
enh: Force umount for NFS mount (like with longhorn)
Signed-off-by: Samuel Mutel <12967891+smutel@users.noreply.github.com>pull/8863/head
parent
b47cbbfd42
commit
19fd7e38f6
|
@ -770,7 +770,7 @@ do_unmount_and_remove() {
|
|||
set +x
|
||||
while read -r _ path _; do
|
||||
case "$path" in $1*) echo "$path" ;; esac
|
||||
done < /proc/self/mounts | sort -r | xargs -r -t -n 1 sh -c 'umount "$0" && rm -rf "$0"'
|
||||
done < /proc/self/mounts | sort -r | xargs -r -t -n 1 sh -c 'umount -f "$0" && rm -rf "$0"'
|
||||
set -x
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
8c71108b5602b40ab6a9e60fe66403302b458046cb8afd1980d3c183d25278ac install.sh
|
||||
882d7386b690cc375ed20f48a257907aa9a2d5269d0a099518bbdde35fb0d8c4 install.sh
|
||||
|
|
Loading…
Reference in New Issue