summaryrefslogtreecommitdiff
path: root/experiments/04_20251216_pkg_store/README
blob: 1a538db75ca3d4e69eff6f7d52a7913f91962a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Goal: dynamically build rootfs from packages stored outside of initramfs
Status: success

as POC I'm running sl (steam locomotive) as init after changing root

for this experiment I needed to compile linux kernel with overlayfs, virtio and
9p drivers built in. Alternatively I could compile kernel with ext4 support and
load modules

- new dir "pkgs.sl" contains packages required for steam locomotive to run
- make now creates pkg_store that contains unpacked packages from pkgs.sl
- run_qemu.sh now also adds virtio 9p mount with pkg_store
- init script mounts pkg_store and builds rootfs from it (and initramfs as base
  system)