plan9fox/lib/namespace
Jacob Moody 774529e440 kernel: add /rc to devroot
This makes it much easier to run a rc
program without needing to bind in all of '#s/boot'.
2022-05-28 02:31:26 +00:00

44 lines
782 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# root
mount -aC #s/boot /root $rootspec
bind -a $rootdir /
# kernel devices
bind #c /dev
bind #d /fd
bind -c #e /env
bind #p /proc
bind -c #s /srv
bind -q #σ /shr
bind -a #¤ /dev
bind -qa #¶ /dev
# authentication
mount -b /srv/factotum /mnt
# mount points
mount -a /srv/slashn /n
mount -a /srv/slashmnt /mnt
mount -a /srv/mntexport /mnt/exportfs
# standard bin
bind /$cputype/bin /bin
bind $rootdir'/rc' /rc
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 -C /srv/boot /n/other other
bind -c /n/other/usr/$user/tmp /usr/$user/tmp
bind -c /usr/$user/tmp /tmp
cd /usr/$user
. /lib/namespace.local
. /lib/namespace.$sysname
. /cfg/$sysname/namespace