fix: fde-lock finds ashenvale mounts reported as /dev/dm-N

This commit is contained in:
RootHost-Stormwind committed 2026-11-01 17:21:51 +01:00
1 parent 084243263d
commit 5d490e4734
1 file changed
+6 -1
+6 -1
View File
@@ -86,8 +86,13 @@ lock_nethergarde() {
# ------------------------------------------------------------ ashenvale_crypt
ashenvale_mounts() {
# findmnt names the source /dev/dm-N (bind mounts add "[/subdir]"), so match both spellings.
local d devs=" "
for d in /dev/mapper/"$vg"-*; do
[ -e "$d" ] && devs+="$d $(realpath "$d") "
done
findmnt -rn -o TARGET,SOURCE | while read -r t src; do
case "$src" in "/dev/mapper/$vg-"*) echo "$t" ;; esac
case "$devs" in *" ${src%%\[*} "*) echo "$t" ;; esac
done
}