5 if(test -e '#b' && ! test -e /dev/kbd){
8 exec /rc/bin/bootrc </dev/cons >/dev/cons >[2]/dev/cons
19 rm -f '#e'/$1 '#ec'/$1 /env/$1
24 # convert plan9.ini variables
44 $* || fatal $"*^': '^$status
73 if(~ $#nobootprompt 0){
76 ask bootargs ' is (tcp, local!device)' $bootargs
78 if not bootargs=$nobootprompt
79 mn=`{echo $bootargs | awk -F! '{print $1}'}
80 ma=`{echo $bootargs | sed 's/[^!]+!?//'}
81 for(i in `{seq 1 $#mt}){
90 # authentication agent
91 if(! test -f /srv/factotum){
92 x=(/boot/factotum -sfactotum)
99 if(! ~ $#debugfactotum 0)
103 if not user=`{cat /dev/hostowner}
108 # mount and change root in new enviroment and namespace
111 # mount root filesystem
114 must mount -c /srv/boot $rootdir
116 # remove enviroment variables
117 rm -f /env/^$mt /env/? /env/?? '/env/fn#'*
119 # remove part of our temporary root
120 /mnt/broot/$cputype/bin/unmount /$cputype/bin /bin
121 /mnt/broot/$cputype/bin/unmount /rc/bin /bin
122 /mnt/broot/$cputype/bin/unmount /
124 # create the name space, mount the root fs
125 /mnt/broot/$cputype/bin/bind / /
126 /mnt/broot/$cputype/bin/mount -ac '#s/boot' /
128 # remove the remaining temporary root
129 /mnt/broot/$cputype/bin/unmount /mnt/broot
149 cat $"kbmap >/dev/kbmap
152 # bind in an ip interface
153 for(i in I l`{seq 0 3})
156 configlocal # add partitions and binds
162 # cleanup so it can be restarted
165 rm -f /srv/boot /srv/slashn /srv/cs /srv/dns