From 7e5e472c655b4b9350e884dd07e2b355b4b77abc Mon Sep 17 00:00:00 2001 From: primardj Date: Tue, 23 Jan 2024 17:32:12 +0000 Subject: [PATCH] remove recover options. Add it to umount option --- dmount | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dmount b/dmount index 10258a2..45c5232 100755 --- a/dmount +++ b/dmount @@ -12,7 +12,6 @@ PARAMETRES -v, --version Print the version and exit -m, --mount Mount cryptdata -u, --umount Unmount cryptdata - -r, --recover Permit to recover from a state where the ssd where hot unplug to an unplug state. " Mountpoint_cours=/home/primardj/cours @@ -68,7 +67,7 @@ umount_lvm_on_luks() { echo "locking device cryptdata" umount_devices || error_umount - doas lvchange -a n cryptdata || force_remove_vgdevice + doas lvchange -a n cryptdata || error_deactivate_vg doas cryptsetup close cryptdata } @@ -92,9 +91,5 @@ for i in "$@"; do umount_lvm_on_luks exit 0 ;; - "-r" | "--recover") - force_remove_vgdevice - exit 0 - ;; esac done