summaryrefslogtreecommitdiff
path: root/lib/namespace
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 19:35:09 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 19:35:09 +0300
commita9060cc06bee66e12fe16644511f181a4b0cdbd3 (patch)
tree8778fe5d1ab1e6eefee29b357ee5b585f5b7ad30 /lib/namespace
parent1206371abb0d786be1d5ee4201ff864680e2387b (diff)
downloadplan9front-a9060cc06bee66e12fe16644511f181a4b0cdbd3.tar.xz
Import sources from 2011-03-30 iso image - lib
Diffstat (limited to 'lib/namespace')
-rwxr-xr-xlib/namespace38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/namespace b/lib/namespace
new file mode 100755
index 000000000..322e98e72
--- /dev/null
+++ b/lib/namespace
@@ -0,0 +1,38 @@
+# 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
+
+# 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
+
+bind -c /usr/$user/tmp /tmp
+cd /usr/$user
+
+. /lib/namespace.local
+. /lib/namespace.$sysname
+. /cfg/$sysname/namespace