aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-13 19:40:10 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-03-14 20:33:54 +0100
commit858e9bbef4421cd4a1f85a1b5eeb3ebd4f3dce8a (patch)
tree64986b9318899eb3692ee481f1d8de36da949346
parentlinuxrc: Mark kernel command-line argument lvmraid as deprecated (diff)
downloadgenkernel-858e9bbef4421cd4a1f85a1b5eeb3ebd4f3dce8a.tar.gz
genkernel-858e9bbef4421cd4a1f85a1b5eeb3ebd4f3dce8a.tar.bz2
genkernel-858e9bbef4421cd4a1f85a1b5eeb3ebd4f3dce8a.zip
linuxrc: Drop "console" kernel argument handling
It was never really used; Kernel's console handling already did the work. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/linuxrc21
-rw-r--r--doc/genkernel.8.txt4
2 files changed, 0 insertions, 25 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 28a504b..acb246c 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -178,12 +178,6 @@ do
MLIST=$(echo ${MLIST} ${x#*=} | sed -e 's/^\ *//;s/,/ /g')
export MLIST
;;
- # Redirect output to a specific tty
- CONSOLE=*|console=*)
- NEW_CONSOLE=${x#*=}
- NEW_CONSOLE=$(basename ${NEW_CONSOLE})
- NEW_CONSOLE=${NEW_CONSOLE%%,*}
- ;;
# /dev/md
lvmraid=*)
warn_msg "'${x}' kernel command-line argument is deprecated; Use 'dolvm' instead!"
@@ -455,21 +449,6 @@ do
esac
done
-if [ -n "${NEW_CONSOLE}" ]
-then
- # We cannot update console while processing CMDLINE because we
- # are only interested in last console= value.
- [ ! -c "${NEW_CONSOLE}" ] && NEW_CONSOLE="/dev/${NEW_CONSOLE}"
- if [ -c "${NEW_CONSOLE}" ]
- then
- exec 0<>${NEW_CONSOLE} 1<>${NEW_CONSOLE} 2<>${NEW_CONSOLE}
- good_msg "Console switched from '${CONSOLE}' to '${NEW_CONSOLE}'!"
- CONSOLE="${NEW_CONSOLE}"
- else
- bad_msg "Unable to switch console: '${NEW_CONSOLE}' not found or not a character device!"
- fi
-fi
-
good_msg "${gk_ver} (${gk_build_date}). Linux kernel ${kernel_ver}"
if [ "${GK_BOOTFONT_DISABLED}" = '0' -a -e /lib/console/font ]
diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt
index d7afc07..b75f979 100644
--- a/doc/genkernel.8.txt
+++ b/doc/genkernel.8.txt
@@ -872,10 +872,6 @@ enabled.
*nomodules*::
Enables/disables loading of modules in general.
-*CONSOLE*=<...>::
-*console*=<...>::
- Override location of console, default is "/dev/console".
-
*part*[=<0,1>]::
*partitionable*::
Enable/Disable partitionable RAIDs (metadata 0.x) during auto-run.