dracut.sh: skip crypt swaps with password files

master
Harald Hoyer 2013-12-02 11:05:21 +01:00
parent 8064f68d60
commit 64ae4e07a4
1 changed files with 2 additions and 0 deletions

View File

@ -947,6 +947,8 @@ if [[ $hostonly ]]; then
[[ $_mapper = \#* ]] && continue
[[ "$_d" -ef /dev/mapper/"$_mapper" ]] || continue
[[ "$_o" ]] || _o="$_p"
# skip entries with password files
[[ "$_p" == /* ]] && [[ -f $_p ]] && continue 2
# skip mkswap swap
[[ $_o == *swap* ]] && continue 2
done < /etc/crypttab