From 2035dd968b06142f430b7db258bef4e0db94fa4a Mon Sep 17 00:00:00 2001
From: Anhad Singh <andypythonappdeveloper@gmail.com>
Date: Tue, 25 Jul 2023 19:32:35 +1000
Subject: [PATCH] initfs: switch to VT#3 before `run.d`

* Make `vesad` allocate VTs 1..12 on startup. They can later be replaced
  by another display device.
* Switch to VT#3 before `run.d`
* Also set the mode of VT#3 to [`VtMode::Graphical`].

Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>
---
 recipes/initfs/init.rc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes/initfs/init.rc b/recipes/initfs/init.rc
index d0cd7ac4d..a9f652aa3 100644
--- a/recipes/initfs/init.rc
+++ b/recipes/initfs/init.rc
@@ -4,7 +4,7 @@ nulld
 zerod
 randd
 inputd
-vesad T T G
+vesad T T T T T T T T T T T T
 logd debug: display/vesa:1
 stdio log:
 ps2d us
@@ -14,4 +14,5 @@ pcid /etc/pcid/initfs.toml
 redoxfs --uuid $REDOXFS_UUID file $REDOXFS_BLOCK
 cd file:
 export PATH file:/bin
+inputd -G 3
 run.d /etc/init.d
-- 
GitLab