add what process own files in use in a filesystem.
This commit is contained in:
parent
7246b61c35
commit
47eae31609
1 changed files with 5 additions and 5 deletions
10
dmount
10
dmount
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
|
||||
Version="1.1.0"
|
||||
Version="1.1.1"
|
||||
Usage="dmount PARAMETER
|
||||
|
||||
Script which permit to mount/unmount an LVM on LUKS using dmcrypt, doas and fstab.
|
||||
|
@ -36,10 +36,10 @@ mount_lvm_on_luks() {
|
|||
|
||||
umount_devices() {
|
||||
echo "umount devices"
|
||||
doas umount -R $Mountpoint_cours
|
||||
doas umount -R $Mountpoint_doc
|
||||
doas umount -R $Mountpoint_virt_machine
|
||||
doas umount -R $Mountpoint_data
|
||||
doas umount -R $Mountpoint_cours || lsof +D $Mountpoint_cours
|
||||
doas umount -R $Mountpoint_doc || lsof +D $Mountpoint_doc
|
||||
doas umount -R $Mountpoint_virt_machine || lsof +D $Mountpoint_virt_machine
|
||||
doas umount -R $Mountpoint_data || lsof +D $Mountpoint_data
|
||||
}
|
||||
|
||||
error_umount() {
|
||||
|
|
Loading…
Reference in a new issue