This commit is contained in:
illiliti 2020-02-14 02:10:25 +03:00
parent a984c4d091
commit 5cd50d3b0d

View File

@ -55,9 +55,9 @@ create_uuid_label_symlink() {
add_symlinks() {
# Skip temp cryptsetup nodes.
case "$MDEV" in
"dm-"[0-9]*)
case "$(cat "/sys/block/${MDEV}/dm/name")" in
"temporary-cryptsetup-"[0-9]*)
dm-[0-9]*)
case $(cat "/sys/block/${MDEV}/dm/name") in
temporary-cryptsetup-[0-9]*)
return 0
;;
esac