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
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
case $arg in
console= *)
arg= ${arg#console= }
cons= ${arg%% ,*}
if echo "$consoles" | grep -q "^$cons$"; then
console= $cons
fi
;;
esac
done
# Locate the last enabled console present on the command line
for arg in $(cat /proc/cmdline); do
fi
if [ -z "$console" ]; then
console= console
# Still nothing? Default to /dev/console.
fi