aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@sabayon.org>2011-01-04 23:20:19 +0100
committerFabio Erculiani <lxnay@sabayon.org>2011-01-20 19:10:52 +0100
commit2abd9c2742e035667b4cfebf1be50be4d83595fd (patch)
tree423616323b7cdb40e3660d5c6ffaab30f266c783
parentdocmatcher: Re-order output sections for practical reasons (diff)
downloadgenkernel-2abd9c2742e035667b4cfebf1be50be4d83595fd.tar.gz
genkernel-2abd9c2742e035667b4cfebf1be50be4d83595fd.tar.bz2
genkernel-2abd9c2742e035667b4cfebf1be50be4d83595fd.zip
Add compatibility with older cmdline setup on console argument
Older systems featured full path to tty inside console=. This is no longer valid and causes issues with fbcondecor. The new expected format of console= is tty name with the directory part stripped off: console=tty1 for example. This patch has been in sabayon's genkernel for <2 years, but should be tested out on non-standard environments.
-rwxr-xr-xdefaults/linuxrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 9e40b31..0083fce 100755
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -135,6 +135,7 @@ do
# Redirect output to a specific tty
CONSOLE\=*|console\=*)
CONSOLE=`parse_opt "${x}"`
+ CONSOLE=`basename ${CONSOLE}`
# exec >${CONSOLE} <${CONSOLE} 2>&1
;;
# /dev/md