plan9/lib/namespace

48 lines
774 B
Plaintext
Raw Permalink Normal View History

2014-02-08 11:19:48 +04:00
# 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
bind -b #k /dev
bind -a #κ /dev
bind -a #u /dev
bind -b #P /dev
# mount points
mount -a /srv/slashn /n
# 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 -b /srv/ssh /net
# usbd, mainly disks
mount /srv/usb /n/usb
mount -a /srv/usb /dev
bind -c /usr/$user/tmp /tmp
cd /usr/$user
. /lib/namespace.local
. /lib/namespace.$sysname
. /cfg/$sysname/namespace