summaryrefslogtreecommitdiff
path: root/source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff')
-rw-r--r--source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff b/source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff
new file mode 100644
index 00000000..c81f542b
--- /dev/null
+++ b/source/a/sysvinit/sysvinit.no.console.agetty.without.sysvinit_agetty.diff
@@ -0,0 +1,16 @@
+--- ./src/init.c.orig 2018-06-18 18:25:26.000000000 -0500
++++ ./src/init.c 2018-08-28 23:45:05.134948889 -0500
+@@ -1337,6 +1337,13 @@
+ return;
+ }
+ if (fgets(buf, sizeof(buf), fp)) {
++ /* OK, this is a weird undocumented feature. We'll look for "sysvinit_agetty" in the kernel */
++ /* command line and if we don't see it, then we'll assume you didn't want this. */
++ char* t = buf;
++ if (!(t = strstr(t, "sysvinit_agetty"))) {
++ fclose(fp);
++ return;
++ }
+ char* p = buf;
+ while ((p = strstr(p, "console="))) {
+ char* e;