shithub: 9ferno

Download patch

ref: 3521573f2f6de16d6063b870c338e5c42fbab3a6
parent: 5ce6cc58800bf83ba64fc1932fbbdb6c0e1f7864
author: joe9 <joe9mail@gmail.com>
date: Thu Jul 29 07:38:05 EDT 2021

replaced bootrc with init

--- /dev/null
+++ b/dis/init
@@ -1,0 +1,25 @@
+# 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