plan9fox/lib/namespace
cinap_lenrek 26c2845917 kbdfs
2011-05-09 08:32:14 +00:00

43 lines
755 B
Text
Executable file

# root
mount -aC #s/boot /root $rootspec
bind -a $rootdir /
bind -c $rootdir/mnt /mnt
# kernel devices
bind #c /dev
bind #d /fd
bind -c #e /env
bind #p /proc
bind -c #s /srv
bind -a #¤ /dev
bind -a #S /dev
# mount points
mount -a /srv/slashn /n
mount -b /srv/cons /dev
# authentication
mount -a /srv/factotum /mnt
# standard bin
bind /$cputype/bin /bin
bind -a /rc/bin /bin
# internal networks
# mount -a /srv/ip /net
bind -a #l /net
bind -a #I /net
mount -a /srv/cs /net
mount -a /srv/dns /net
mount -a /srv/net /net
mount -qC /srv/cwfs /n/other other
bind -qc /n/other/usr/$user/tmp /usr/$user/tmp
bind -qc /n/other/dist /dist
bind -c /usr/$user/tmp /tmp
cd /usr/$user
. /lib/namespace.local
. /lib/namespace.$sysname
. /cfg/$sysname/namespace