code: 9ferno

ref: 1de9b5a9c0d6ebb387ab840d27d1f62de689f781
dir: /dis/init/

View raw version
# boot initialization here
# sh -n /dis/bootrc

load std

mount { mntgen } /n
disk/fdisk -p /dev/sdG0/data >/dev/sdG0/ctl
disk/prep -p /dev/sdG0/plan9 > /dev/sdG0/ctl

## for installing to disk
#9660srv /dev/sdF0/data /n/cd
#bind -b /n/cd/dis /dis
#bind -b /n/cd/Inferno/386 /
## for some reason, this mount hangs the vm
#mount -c { disk/kfs -r -n root /dev/sdG0/fs } /n/local # reams
##disk/kfscmd -n root sync
#disk/mkfs -v -r -s /n/cd/ -d /n/local/ <{ echo + }

# with inferno installed to a disk
mount -c { disk/kfs -n root /dev/sdG0/fs } /n/local
disk/kfscmd -n root sync
bind -b /n/local/dis /dis
bind -a -c /n/local/ /

sh -n