From 89a42c5003479641c4e951e72501c495878d6c99 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 15 Feb 2025 13:08:37 -0600 Subject: [PATCH] drop fstype for umount --- roles/usb_lib/files/usbmount/usbmount | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/usb_lib/files/usbmount/usbmount b/roles/usb_lib/files/usbmount/usbmount index b4572acc4..74cbc6a3a 100644 --- a/roles/usb_lib/files/usbmount/usbmount +++ b/roles/usb_lib/files/usbmount/usbmount @@ -211,10 +211,10 @@ elif [ "$1" = remove ]; then while read -r device mountpoint fstype; do if [ "/$DEVNAME" = "$device" ]; then log debug "umount device is $device" + log debug "umount mountpoint is $mountpoint" # If the mountpoint and filesystem type are maintained by # this script, unmount the filesystem. - if in_list "$mountpoint" "$MOUNTPOINTS" && - in_list "$fstype" "$FILESYSTEMS"; then + if in_list "$mountpoint" "$MOUNTPOINTS"; then log info "executing command: umount -l $mountpoint" umount -l "$mountpoint"