From 44fc037d6ced3d88b677873829f602b12ae0a36e Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 16 Apr 2024 14:53:25 +0300 Subject: [PATCH] Disk : Unlock adds a link to mount. --- module/common/bash/module/Disk.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/module/common/bash/module/Disk.nix b/module/common/bash/module/Disk.nix index 4d77e6f..6bb1749 100644 --- a/module/common/bash/module/Disk.nix +++ b/module/common/bash/module/Disk.nix @@ -24,6 +24,7 @@ local unlock=$(udisksctl unlock -b "''${loop}" | _filter) local mount=$(udisksctl mount -b "''${unlock}" | _filter) + [ -L "./''${name}" ] || ln -s "''${mount}" "./''${name}" cd "''${mount}" } '';