Browse Source

dracut.sh: skip crypt swaps with password files

master
Harald Hoyer 11 years ago
parent
commit
64ae4e07a4
  1. 2
      dracut.sh

2
dracut.sh

@ -947,6 +947,8 @@ if [[ $hostonly ]]; then @@ -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

Loading…
Cancel
Save