1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

drop fstype for umount

This commit is contained in:
Jerry Vonau 2025-02-15 13:08:37 -06:00
parent 412cbd655c
commit 89a42c5003

View file

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