Comment 28 for bug 62751

Revision history for this message
Hamish Downer (mishd) wrote : Re: Upstart doesn't activate luks volumes in cryptsetup

The fix worked for me :)

As a possible improvement to the code, to include the old option (ie "ON_VT" == "yes" )

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