Plan 9 from Bell Labs’s /usr/web/sources/xen/xen2/9/xenpc/boot.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/boot/rc -m /boot/rcmain

cpuserver=yes
cd /boot
echo boot...
bind -a '#I' /net
bind -a '#l0' /net
#bind -a '#S' /dev
bind '#p' /proc
bind '#d' /fd
bind -a /boot /

ipconfig -D

authaddr=`{sed -n 's/	auth=(.*)/\1/p' /net/ndb|sed 1q}
if(~ $authaddr '')
	authaddr=135.104.9.7
fsaddr=`{sed -n 's/	fs=(.*)/\1/p' /net/ndb|sed 1q}
if(~ $fsaddr '')
	fsaddr=135.104.9.16

factotum -sfactotum -S -a $authaddr

if(! srv tcp!$fsaddr!564 boot)
	exec ./rc -m/boot/rcmain -i

if(! mount -c /srv/boot /root)
	exec ./rc -m/boot/rcmain -i

bind -ac /root /
rootdir=/root
rootspec=''
/$cputype/init -c
exec ./rc -m/boot/rcmain -i

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.