diff options
| author | wrzosik <mia@miangie.dev> | 2025-11-30 14:59:48 +0100 |
|---|---|---|
| committer | wrzosik <mia@miangie.dev> | 2025-11-30 14:59:48 +0100 |
| commit | b1a960ac6e9b2266df02966db034d438141d3c9b (patch) | |
| tree | a144d8db33c7d0cc639a2352859b7057ea57ba4a /experiments/01_20250913_booting_minimal_image/README | |
| parent | 8822e7ff9da64d22d86a4397eaf629cca18df047 (diff) | |
experiment: booting minimal initramfs
Added experiment on building absolute bare-minimum initramfs and boot it in
QEMU using direct boot method
Diffstat (limited to 'experiments/01_20250913_booting_minimal_image/README')
| -rw-r--r-- | experiments/01_20250913_booting_minimal_image/README | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/experiments/01_20250913_booting_minimal_image/README b/experiments/01_20250913_booting_minimal_image/README new file mode 100644 index 0000000..685b30e --- /dev/null +++ b/experiments/01_20250913_booting_minimal_image/README @@ -0,0 +1,16 @@ +Initially this experiment was about booting kernel directly into VM with qemu +and making minimal initramfs + +At 29.11.2025 I decided to copy few binaries to initramfs to see if I can get +a working shell. Turned out it's actually easy and adding bin/dash, 2 libs it +dynamically links to at runtime (ld and libc) and making correct symlinks was +enough to get me started + +binaries copied: +/bin/dash +/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 +/lib/x86_64-linux-gnu/libc.so.6 + +links: +/init -> /bin/dash +/lib64/ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 |
