aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@sabayon.org>2011-01-04 23:20:19 +0100
committerSebastian Pipping <sebastian@pipping.org>2011-01-05 15:10:37 +0100
commit808a0ae1bf56c05cdbc8ec573e66d990215dc6d9 (patch)
tree3cdf7f6afc56268cedb31c53aa6eaea58d71bc0c
parentChange default sleep time when CDROOT=1 and sdelay is not set. (diff)
downloadgenkernel-808a0ae1bf56c05cdbc8ec573e66d990215dc6d9.tar.gz
genkernel-808a0ae1bf56c05cdbc8ec573e66d990215dc6d9.tar.bz2
genkernel-808a0ae1bf56c05cdbc8ec573e66d990215dc6d9.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 0bf7316f..7d5f634b 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