--- rc.sysinit.org 2010-11-02 16:15:56.158505833 +0100 +++ rc.sysinit 2010-11-02 17:11:05.197615360 +0100 @@ -180,6 +180,12 @@ if [ -f /etc/crypttab -a -n "$(/bin/grep shift 3 copts="$*" stat_append "${cname}.." + if [ -x /etc/precryptsetup.d/$cname ]; then + /etc/precryptsetup.d/$cname "$csrc" + else + true + fi + if [ $? -eq 0 ]; then # For some fun reason, the parameter ordering varies for # LUKS and non-LUKS devices. Joy. if [ "${cpass}" = "SWAP" ]; then @@ -222,6 +228,7 @@ if [ -f /etc/crypttab -a -n "$(/bin/grep else stat_append "ok " fi + fi fi } while read line; do