mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
Implement kernel bootstrap up to building Linux.
This commit is contained in:
parent
ae7e1f9498
commit
6881d5dcf8
56 changed files with 4869 additions and 209 deletions
19
sysa/musl-1.2.3/patches/avoid_sys_clone.patch
Normal file
19
sysa/musl-1.2.3/patches/avoid_sys_clone.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
diff -u -r musl-1.2.3.orig/src/process/posix_spawn.c musl-1.2.3/src/process/posix_spawn.c
|
||||
--- src/process/posix_spawn.c 2022-04-07 17:12:40.000000000 +0000
|
||||
+++ src/process/posix_spawn.c 2022-12-19 23:47:31.858417338 +0000
|
||||
@@ -190,8 +190,15 @@
|
||||
goto fail;
|
||||
}
|
||||
|
||||
+#if 0
|
||||
pid = __clone(child, stack+sizeof stack,
|
||||
CLONE_VM|CLONE_VFORK|SIGCHLD, &args);
|
||||
+#endif
|
||||
+ pid = fork();
|
||||
+ if (pid == 0) {
|
||||
+ _exit(child(&args));
|
||||
+ }
|
||||
+
|
||||
close(args.p[1]);
|
||||
UNLOCK(__abort_lock);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue