[systemd-devel] [PATCH 2/2] vconsole: set font on tty16..tty63 as well

Jan Engelhardt jengelh at inai.de
Tue Feb 24 08:49:03 PST 2015


The setup program would not set the font on tty16 upwards.
There is a maximum of 63 VCs possible in Linux. (That number is
hardcoded.)
---
 src/vconsole/vconsole-setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c
index bf681d9..0cf9776 100644
--- a/src/vconsole/vconsole-setup.c
+++ b/src/vconsole/vconsole-setup.c
@@ -186,7 +186,7 @@ static void font_copy_to_all_vcs(int fd) {
         if (r < 0)
                 return;
 
-        for (i = 1; i <= 15; i++) {
+        for (i = 1; i < 64; ++i) {
                 char vcname[16];
                 _cleanup_close_ int vcfd = -1;
                 struct console_font_op cfo = {};
-- 
2.1.4



More information about the systemd-devel mailing list