summaryrefslogtreecommitdiff
path: root/src/user/bootstrap
diff options
context:
space:
mode:
authordzwdz2022-08-13 16:21:02 +0200
committerdzwdz2022-08-13 16:21:02 +0200
commit57427191e2cf0f08724b74fba3a35aa41ceda40d (patch)
treee78b02cfd05d978772cc8dfff8de1cb4791c8021 /src/user/bootstrap
parent1528e2153dfbd729916f1211a6f481a2171f855f (diff)
user: plan9-style /bin/ union
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r--src/user/bootstrap/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c
index fbcb641..f06401b 100644
--- a/src/user/bootstrap/main.c
+++ b/src/user/bootstrap/main.c
@@ -23,9 +23,10 @@ void _start(void) {
MOUNT_AT("/init/") { tar_driver(&_initrd); }
- void *init = tar_find("bin/init", 8, &_initrd, ~0) + 512;
+ const char *initpath = "bin/amd64/init";
+ void *init = tar_find(initpath, strlen(initpath), &_initrd, ~0) + 512;
if (init) {
- _klogf("execing init.elf");
+ _klogf("execing init");
elf_exec(init, NULL, NULL);
_klogf("elf_exec failed");
} else {