* added support to Emerge -repository w/ repo/*
[t2sde.git] / package / boot / palo / no-console-tty.patch
blobb07c8ec7c27d2a5abd75e0cfac7d2bcb2a9375aa
1 Our sysvinit spawns an extra agetty for each cmdline console=, so let's
2 not bother adding non serial ones. Don't at pointless to us TERM= either.
4 Clean up boot messages, by removing rather uninteresting console= note, too.
6 --- palo-2.24/ipl/ipl.c.vanilla 2023-12-16 22:42:27.091651840 +0100
7 +++ palo-2.24/ipl/ipl.c 2023-12-16 22:45:31.157643983 +0100
8 @@ -629,11 +629,12 @@
9 /* add the right console= if there isn't one yet */
10 if (strstr(commandline, " console=") == 0)
12 + /*
13 printf("\nInformation: No console specified on kernel command line."
14 " This is normal.\nPALO will choose the console currently"
15 " used by firmware ");
16 + */
18 - chk_strcat(commandline, " console=", CMDLINELEN, &ok);
19 if (pdc_cons_duplex())
21 int is_mux;
22 @@ -643,18 +644,19 @@
23 if(pdc_cons_mux(&is_mux) != PDC_OK)
24 printf("Information: The PDC calls to query the console device failed. Assuming console=ttyS0\n");
26 + chk_strcat(commandline, " console=", CMDLINELEN, &ok);
27 if(is_mux)
28 chk_strcat(commandline, "ttyB0", CMDLINELEN, &ok);
29 else
30 chk_strcat(commandline, get_default_serial_console(), CMDLINELEN, &ok);
32 - if (strstr(commandline, " TERM=") == 0)
33 - chk_strcat(commandline, " TERM=vt102", CMDLINELEN, &ok);
34 + //if (strstr(commandline, " TERM=") == 0)
35 + //chk_strcat(commandline, " TERM=vt102", CMDLINELEN, &ok);
37 else
39 printf("(graphics).\n");
40 - chk_strcat(commandline, "tty0", CMDLINELEN, &ok);
41 + //chk_strcat(commandline, "tty0", CMDLINELEN, &ok);
42 if (strstr(commandline, " sti=") == 0)
44 struct {
45 @@ -685,8 +687,8 @@
47 if (strstr(commandline, " sti_font=") == 0)
48 chk_strcat(commandline, " sti_font=VGA8x16", CMDLINELEN, &ok);
49 - if (strstr(commandline, " TERM=") == 0)
50 - chk_strcat(commandline, " TERM=linux", CMDLINELEN, &ok);
51 + //if (strstr(commandline, " TERM=") == 0)
52 + //chk_strcat(commandline, " TERM=linux", CMDLINELEN, &ok);