Skip to content

Commit

Permalink
enh: Force umount for NFS mount (like with longhorn)
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Mutel <12967891+smutel@users.noreply.github.com>
  • Loading branch information
smutel authored and brandond committed Nov 15, 2023
1 parent b47cbbf commit 19fd7e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion install.sh.sha256sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8c71108b5602b40ab6a9e60fe66403302b458046cb8afd1980d3c183d25278ac install.sh
882d7386b690cc375ed20f48a257907aa9a2d5269d0a099518bbdde35fb0d8c4 install.sh

0 comments on commit 19fd7e3

Please sign in to comment.