Skip to contentSkip to conversation

master - blkdeactivate: prevent trying to unmount the same mountpoint more times

PATCH Peter Rajnoha 1 participant 1 message Jan 23, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2be83f45431313947619ac57e9554c59621c371b
Commit:        2be83f45431313947619ac57e9554c59621c371b
Parent:        f7da1caf8deaf50e0597ec377fb035ea3de1ac36
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Wed Jan 23 16:57:44 2013 +0100
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Wed Jan 23 16:57:44 2013 +0100

blkdeactivate: prevent trying to unmount the same mountpoint more times

An addendum to previous commit 1052863a1b35f7488758c78b3a9ebef5c63392bc.

---
 scripts/blkdeactivate.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/blkdeactivate.sh.in +1 -1
index 849c61d..be00c24 100644
@@ -39,7 +39,7 @@ LVM="@sbindir@/lvm"
 LSBLK="/bin/lsblk -r --noheadings -o TYPE,KNAME,NAME,MOUNTPOINT"
 LSBLK_VARS="local devtype local kname local name local mnt"
 LSBLK_READ="read -r devtype kname name mnt"
-SORT_MNT="/bin/sort -r -k 4"
+SORT_MNT="/bin/sort -r -u -k 4"
 
 # Do not unmount mounted devices by default.
 DO_UMOUNT=0