Skip to main content
Topic: Cryptsetup throws an error when shutdown (Read 281 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cryptsetup throws an error when shutdown

Hello guys. I have an error that prompt the screen 1ms before shutdown. I could barely see it but from what I managed to see it's about cryptsetup exactly the error looks like this

/usr/lib/rc/sv.d/cryptsetup: line 109  /sys/block/dm-*; do...

by looking into that file i see it's not line 109 but rather line 108  :o the whole thing looks like this

Code: [Select]
105}
106
107lock_devices() {
108 for file in /sys/block/dm-*; do
109     IFS=- read -r dm_type _ _ _ < "$file/dm/uuid"
110
111     # --deferred used to prevent hang on FDE systems
112     [ "$dm_type" = CRYPT ] && cryptsetup close --deferred "$(cat "$file/dm/name")"
113 done
114}

Now it doesn't seem to do anything bad but how can i safely get rid of that. Tnx in advance.

P.S. i don't use cryptsetup for encrypting my disks.