Browse Source

crypt: ignore devices in /etc/crypttab (root is not in there)

master
Harald Hoyer 16 years ago
parent
commit
394f30d8d4
  1. 8
      modules.d/50plymouth/cryptroot-ask.sh
  2. 7
      modules.d/90crypt/cryptroot-ask.sh

8
modules.d/50plymouth/cryptroot-ask.sh

@ -19,8 +19,11 @@ if [ -f /etc/crypttab ] && ! getargs rd_NO_CRYPTTAB; then @@ -19,8 +19,11 @@ if [ -f /etc/crypttab ] && ! getargs rd_NO_CRYPTTAB; then
cdev=$(readlink -f $dev)
mdev=$(readlink -f $1)
if [ "$cdev" = "$mdev" ]; then
luksname="$name"
break
# for now just ignore everything which is in crypttab
# anaconda does not write an entry for root
exit 0
#luksname="$name"
#break
fi
done < /etc/crypttab
fi
@ -59,4 +62,5 @@ unset LUKS @@ -59,4 +62,5 @@ unset LUKS
unset ask
unset luks
exit 0
# vim:ts=8:sw=4:sts=4:et


7
modules.d/90crypt/cryptroot-ask.sh

@ -18,8 +18,11 @@ if [ -f /etc/crypttab ] && ! getargs rd_NO_CRYPTTAB; then @@ -18,8 +18,11 @@ if [ -f /etc/crypttab ] && ! getargs rd_NO_CRYPTTAB; then
cdev=$(readlink -f $dev)
mdev=$(readlink -f $1)
if [ "$cdev" = "$mdev" ]; then
luksname="$name"
break
# for now just ignore everything which is in crypttab
# anaconda does not write an entry for root
exit 0
#luksname="$name"
#break
fi
done < /etc/crypttab
fi

Loading…
Cancel
Save