summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-11 17:04:00 -0400
committerIan Moffett <ian@osmora.org>2025-06-11 17:04:00 -0400
commit5fda5742c087a5632be95433a3f4128454a9e1a4 (patch)
tree11d8d61982b8735b22a38066b81632e83a3baa97 /sys/kern/init_main.c
parent443b1eeca681a1efd7d4216f2435da84c8c9d1f3 (diff)
kernel: Deprecate kern_instl for /usr/sbin/install
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 123a91d..cd05af7 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -44,6 +44,12 @@
#include <vm/vm.h>
#include <string.h>
+#if defined(_INSTALL_MEDIA)
+#define _START_PATH "/usr/sbin/install"
+#else
+#define _START_PATH "/usr/bin/osh"
+#endif /* _INSTALL_MEDIA */
+
struct proc g_proc0;
static void
@@ -53,24 +59,12 @@ copyright(void)
"Copyright (c) 2023-2025 Ian Marco Moffett and the OSMORA team\n");
}
-#if defined(_INSTALL_MEDIA)
-static void
-begin_install(void)
-{
- struct cpu_info *ci;
-
- ci = this_cpu();
- ci->curtd = &g_proc0;
- hyra_install();
-}
-#endif
-
static void
start_init(void)
{
struct proc *td = this_td();
struct execve_args execve_args;
- char *argv[] = { "/usr/bin/osh", NULL };
+ char *argv[] = { _START_PATH, NULL };
char *envp[] = { NULL };
execve_args.pathname = argv[0];
@@ -124,12 +118,7 @@ main(void)
/* Load all early drivers */
DRIVERS_INIT();
-#if defined(_INSTALL_MEDIA)
- kprintf("Hyra install media detected\n");
- kprintf("Reform Industry!\n");
- begin_install();
-#endif
-
+ /* Only log to kmsg from here */
syslog_silence(true);
/*