Comment 35 for bug 1615021

Revision history for this message
Martin Pitt (pitti) wrote :

gpiccoli, great finding! Indeed it seems debian-installer interprets console= arguments and prefers the *last* one:

rootskel-1.115ubuntu1/src/sbin/reopen-console-linux:

        if [ -z "$console" ]; then
                # Locate the last enabled console present on the command line
                for arg in $(cat /proc/cmdline); do
                        case $arg in
                            console=*)
                                arg=${arg#console=}
                                cons=${arg%%,*}
                                if echo "$consoles" | grep -q "^$cons$"; then
                                        console=$cons
                                fi
                                ;;
                        esac
                done
        fi

        if [ -z "$console" ]; then
                # Still nothing? Default to /dev/console.
                console=console
        fi