term% cat /sys/src/9/port/bootfs.proto
$objtype
        bin
                9660srv
                awk
                aux
                        kbdfs
                bind
                cat
                cfs
                cryptsetup
                dd
                disk
                        fdisk
                        kfs
                        prep
                dossrv
                echo
                cwfs64x
                grep
                ip
                        ipconfig
                ls
                mkdir
                mntgen
                mount
                mv
                hjfs
                rc
                rm
                sed
                sleep
                srv
                test
                unmount
                nusb
                        usbd
                        disk
                        kb
                xd
rc
        lib
                rcmain
                local.rc 555 sys sys ../boot/local.rc
                net.rc 555 sys sys ../boot/net.rc
        bin
                fstype
                diskparts
                nusbrc 555 sys sys ../boot/nusbrc
                bootrc 555 sys sys ../boot/bootrc
tmp

the resulting bootfs.paq is 1.2 MB.

theres no reclaim. if init dies you get back to the bootrc
"bootargs" prompt.

for comparsion, drawing a 1024x768x32 rio window would be
like 3MB of precious kernel memory.

making fileservers idiomatic is a good idea. thats exactly
what i did with cwfs making it look like kfs. fossil/venti
is the only filesystem that requires special boot code.
(which does not matter in 9front as fossil was removed).

--
cinap

Reply via email to