This website requires JavaScript.
Explore
Help
Register
Sign In
jarod
/
unkernel
Watch
1
Star
0
Fork
0
You've already forked unkernel
mirror of
https://github.com/pithings/unkernel.git
synced
2026-12-02 00:10:39 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
main
unkernel
/
guest
/
base
/
initramfs
History
Pooya Parsa
6b74afbf34
js, guest: let the data disk grow past its 4 GiB template: openDataDisk({ size }) (and the data disk spec's size) makes a new disk that large or relabels a smaller saved one to it, never shrinking, and the base's /init grows /data's ext4 to its device with kwbox growfs (EXT4_IOC_RESIZE_FS)
2026-11-22 22:56:21 +00:00
..
etc
guest, js: one program for the guest tools, and a Debian boot read from the image's front: kwbox (/usr/bin/kwbox, guest/src/kwbox.c) links kwtty, kw9p, kwvsock, kwshm, kwwasi, kwcmd and vtest-bridge into one static binary, called as kwbox tty|9p|vsock|shm|wasi|cmd|vtest (the per-tool paths are gone but binfmt's interpreter /usr/lib/kw/kwwasi; any other name it is called by is a host command, and kwbox is a reserved command name); /init sends an image or upper whose init still runs /usr/bin/kwtty to the base shell or safe mode; the traced boot that lays out an image is the page's (kwshm, kw.gl=1 kw.wayland=1), so wlandr is in Debian's boot set; HttpBase's background tier waits for the first read of the image before its quiet second (an image opened while its kernel loads fetched it during the boot)
2026-11-22 16:11:20 +00:00
kw
/lib
guest, kernel: boot faster and carry less in the base: /init looks for the data disk and the distro image on kwblk's disks only (wd*) and the kernel has no RAM disks (CONFIG_BLK_DEV_RAM off: probing brd's 16 took about 130 ms a boot); /init and rc read files with the shell instead of head; DHCP runs in the background (net background, net wait: the console's shell starts before the lease, kwtty serve and Debian's services with start links wait for it); the bundle stores the initrd uncompressed; wlandr moves from the base to the Debian image (wland says so where there is none); the checkout's CLI turns on Node's compile cache before it loads the SDK
2026-11-22 14:46:21 +00:00
init
js, guest: let the data disk grow past its 4 GiB template: openDataDisk({ size }) (and the data disk spec's size) makes a new disk that large or relabels a smaller saved one to it, never shrinking, and the base's /init grows /data's ext4 to its device with kwbox growfs (EXT4_IOC_RESIZE_FS)
2026-11-22 22:56:21 +00:00