commit:     858e9bbef4421cd4a1f85a1b5eeb3ebd4f3dce8a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 18:40:10 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Mar 14 19:33:54 2021 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=858e9bbe

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 <AT> gentoo.org>

 defaults/linuxrc    | 21 ---------------------
 doc/genkernel.8.txt |  4 ----
 2 files changed, 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.

Reply via email to