project-lakitu: systemd - Enable getty@tty1 if vtconsole is enabled.

From systemd v242 onwards getty@tty1 is not enabled by default.

BUG=b/197143156
TEST=Manual test and presubmit.
RELEASE_NOTE=None

Change-Id: I9ceed9a244ad6845c393d35c76d2701edc07dc2f
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/22332
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Reviewed-by: Roy Yang <royyang@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
diff --git a/project-lakitu/sys-apps/systemd/systemd-248.6-r2.ebuild b/project-lakitu/sys-apps/systemd/systemd-248.6-r3.ebuild
similarity index 100%
rename from project-lakitu/sys-apps/systemd/systemd-248.6-r2.ebuild
rename to project-lakitu/sys-apps/systemd/systemd-248.6-r3.ebuild
diff --git a/project-lakitu/sys-apps/systemd/systemd-248.6.ebuild b/project-lakitu/sys-apps/systemd/systemd-248.6.ebuild
index 2372781..980574a 100644
--- a/project-lakitu/sys-apps/systemd/systemd-248.6.ebuild
+++ b/project-lakitu/sys-apps/systemd/systemd-248.6.ebuild
@@ -421,9 +421,10 @@
 	rm -f "${D}"/usr/lib/systemd/system-preset/*
 	doins "${FILESDIR}"/00-lakitu.preset
 
-	# lakitu: Disable getty on tty1 if VT console is not enabled.
-	if ! use vtconsole; then
-		rm  -f "${D}"/etc/systemd/system/getty.target.wants/getty@tty1.service
+	# lakitu: Enable getty on tty1 if VT console is enabled as it is not
+	# enabled by default post v242.
+	if use vtconsole; then
+		systemd_enable_service getty.target getty@tty1.service
 	fi
 
 	# Install network files.