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:
parent
412cbd655c
commit
89a42c5003
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue