--- init_functions 2014-03-08 23:12:20.000000000 +0400 +++ init_functions.new 2014-03-10 19:03:02.025221626 +0400 @@ -49,12 +49,8 @@ launch_interactive_shell() { export PS1='[rootfs \W]\$ ' - # explicitly redirect to /dev/console in case we're logging. note that - # anything done in the rescue shell will NOT be logged. - { - [ "$1" = "--exec" ] && exec sh -i - sh -i - } 0/dev/console 2>/dev/console + [ "$1" = "--exec" ] && exec cttyhack sh -i + setsid cttyhack sh -i } bitfield_has_bit() {