Comment 18 for bug 62751

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: Upstart doesn't activate luks volumes in cryptsetup

I have a proposed fix for this, could somebody who uses cryptsetup try this...

Edit the init.d script, at the top you'll find some code that looks like:

stdin=`readlink /proc/self/fd/0`
if [ "${stdin#/dev/null}" != "$stdin" ]; then
    exec </dev/console >/dev/console 2>&1
fi

Modify that so it reads:

stdin=`readlink /proc/self/fd/0`
if [ "${stdin#/dev/null}" != "$stdin" ] && [ "$ON_VT" != "yes" ]; then
    exec env ON_VT=yes /usr/bin/openvt -f -c `fgconsole` $0 "$@"
fi