summaryrefslogtreecommitdiff
path: root/modules.d/90crypt/crypt-cleanup.sh
blob: a9c976a7b833bb034184e6ef62b2eee9e6bb292c (plain)
1
2
3
4
5
6
7
#!/bin/sh
# close everything which is not busy
rm -f /etc/udev/rules.d/70-luks.rules >/dev/null 2>&1

for i in /dev/mapper/luks-*; do
    cryptsetup luksClose $i >/dev/null 2>&1
done