Skip to content

Commit 22e26b7

Browse files
authored
Merge pull request #76 from Aloz1/crypt_no_devices_found
Fix "No devices found" error during shutdown
2 parents ef59be6 + 38fea51 commit 22e26b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ deactivate_crypt() {
5050
if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then
5151
msg "Deactivating Crypt Volumes"
5252
for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do
53-
[ ${v%%:*} -eq 0 ] && cryptsetup close ${v##*:}
53+
[ ${v%%:*} = "0" ] && cryptsetup close ${v##*:}
5454
done
5555
deactivate_vgs "Crypt"
5656
fi

0 commit comments

Comments
 (0)