]> gitweb.morketsmerke.org Git - immudex-lhe.git/commitdiff
immudex_crypt - nie można okeślić systemu plików. - BT #86
authorxf0r3m <jakubstasinski@protonmail.com>
Sat, 22 Jul 2023 18:56:23 +0000 (20:56 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sat, 22 Jul 2023 18:56:23 +0000 (20:56 +0200)
tools/000/immudex_crypt

index 5ff721dc37ddf948feefa483bb51c7b1254618ad..187849e8c29e2a10398647f9f15e8bab450e15fa 100755 (executable)
@@ -71,7 +71,7 @@ function open() {
     fi
     sudo cryptsetup open $1 immudex_crypt${index};
     sudo mkdir -p /media/${USER}/immudex_crypt${index};
-    dmDevice=$(ls -l /dev/mapper/immudex_crypt${index} | awk '{printf $10}' | cut -d "/" -f 2);
+    dmDevice=$(ls -l /dev/mapper/immudex_crypt${index} | awk '{printf $11}' | cut -d "/" -f 2);
     if ! $(sudo file -s /dev/${dmDevice} | grep -q 'ext4'); then
       echo "Could not determine filesystem of unlocked device.";
       echo -n "Format this device to ext4? (y/n): "