blob: 7b24b5aadef1d515c8f484efae37e7c9271ff163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# The **m**inimal **init**
This is a simple program that just executes a command and halts the system after
the command has finished executing.
## But, why?
I just needed a program that wouldn't exit on child exit that I could use as
init for User-Mode Linux. If init exits, the Linux kernel panics, and I don't
want extraneous call traces in my logs, not to mention that the terminal is left
in a messy state if UM Linux panics.
## Building
It's just one simple file of C, so you can compile it any way you want.
That said, I made a Makefile specifically to statically compile it to a small
binary that could be ran in any amd64 Linux. If that's what you need, and you
want to `make` it, then you also need [Zig](https://ziglang.org/download/).
It was just the quickest "just werks™" option to statically compile a C binary.
|