Added check for kernel parameter init.autocon=1. If this exists, then
init will try to open its own console. If not, then any console= parameters will be ignored. This avoids conflicts with native kernel created consoles.
This commit is contained in:
@@ -1345,6 +1345,8 @@ void check_kernel_console()
|
||||
}
|
||||
if (fgets(buf, sizeof(buf), fp)) {
|
||||
char* p = buf;
|
||||
if ( strstr(p, "init.autocon=1") )
|
||||
{
|
||||
while ((p = strstr(p, "console="))) {
|
||||
char* e;
|
||||
p += strlen("console=");
|
||||
@@ -1398,7 +1400,8 @@ void check_kernel_console()
|
||||
initlog(L_VB, "added agetty on %s with id %s", dev, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(fp);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user