enh: Force umount for NFS mount (like with longhorn)

Signed-off-by: Samuel Mutel <12967891+smutel@users.noreply.github.com>
This commit is contained in:
Samuel Mutel 2023-10-30 09:11:43 +01:00 committed by Brad Davidson
parent b47cbbfd42
commit 19fd7e38f6
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -1 +1 @@
8c71108b5602b40ab6a9e60fe66403302b458046cb8afd1980d3c183d25278ac install.sh
882d7386b690cc375ed20f48a257907aa9a2d5269d0a099518bbdde35fb0d8c4 install.sh