From e9ab307a5cc70f82ef7ca01f180eaee4b0a2f1b8 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Tue, 11 Oct 2022 12:28:55 +0200
Subject: [PATCH] No more console on TTY1 for cosmetics
As we now run our services as user service and enabled linger for
the default mycroft user we do not need any CLI on tty1 which prevents
linux messages being shown.
---
buildroot-external/board/raspberrypi/cmdline.txt | 2 +-
.../usr/lib/systemd/system-preset/10-ovos.preset | 1 +
.../usr/lib/systemd/system/getty@tty1.service.d/override.conf | 4 ----
3 files changed, 2 insertions(+), 5 deletions(-)
delete mode 100644 buildroot-external/rootfs-overlay/usr/lib/systemd/system/getty@tty1.service.d/override.conf
diff --git a/buildroot-external/board/raspberrypi/cmdline.txt b/buildroot-external/board/raspberrypi/cmdline.txt
index afb6df6b..d84487e4 100644
--- a/buildroot-external/board/raspberrypi/cmdline.txt
+++ b/buildroot-external/board/raspberrypi/cmdline.txt
@@ -1 +1 @@
-dwc_otg.lpm_enable=0 root=PARTUUID=c0932a41-44cf-463b-8152-d43188553ed4 rootfstype=squashfs ro init=/sbin/pre-init fsck.repair=yes zram.enabled=1 zram.num_devices=4 console=tty1 consoleblank=0 loglevel=0 vt.global_cursor_default=0 audit=0 logo.nologo systemd.show_status=0 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u rootwait quiet splash
+dwc_otg.lpm_enable=0 root=PARTUUID=c0932a41-44cf-463b-8152-d43188553ed4 rootfstype=squashfs ro init=/sbin/pre-init fsck.repair=yes zram.enabled=1 zram.num_devices=4 console=console consoleblank=0 loglevel=0 vt.global_cursor_default=0 audit=0 logo.nologo systemd.show_status=0 usb-storage.quirks=174c:55aa:u,2109:0715:u,152d:0578:u,152d:0579:u,152d:1561:u,174c:0829:u,14b0:0206:u rootwait quiet splash
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-ovos.preset b/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-ovos.preset
index a22a3648..13a37bf3 100644
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-ovos.preset
+++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-ovos.preset
@@ -10,6 +10,7 @@ enable getty@tty1.service
enable ovos-splash-start.service
enable ovos-splash-systemd.service
+disable getty@.service
disable ovos-splash-quit.service
disable mosquitto.service
disable motion.service
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/getty@tty1.service.d/override.conf b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/getty@tty1.service.d/override.conf
deleted file mode 100644
index ee6667ca..00000000
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/getty@tty1.service.d/override.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[Service]
-Type=simple
-ExecStart=
-ExecStart=-/usr/sbin/agetty --autologin mycroft --noclear %I $TERM