ref: b56d307ce627f0621defd5117f4f354b82f8ec42
parent: 015f7f51129c6cddac5d9e8bd66a4c8a2dbb87e8
author: glenda <glenda@cirno>
date: Fri Dec 2 01:05:23 EST 2011
use mntgen for /mnt and /mnt/exportfs
--- a/lib/namespace
+++ b/lib/namespace
@@ -14,6 +14,8 @@
# mount points
mount -a /srv/slashn /n
+mount -a /srv/slashmnt /mnt
+mount -a /srv/mntexport /mnt/exportfs
# authentication
mount -a /srv/factotum /mnt
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -13,6 +13,8 @@
# mount points
mntgen -s slashn && chmod 666 /srv/slashn
+mntgen -s slashmnt /mnt && chmod 666 /srv/slashmnt
+mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport
# name translation, cs sets /dev/sysname
ndb/cs
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -3,6 +3,8 @@
TIMESYNCARGS=(-rLa1000000)
mntgen -s slashn && chmod 666 /srv/slashn
+mntgen -s slashmnt /mnt && chmod 666 /srv/slashmnt
+mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport
# bind all likely devices
for(i in S f k t m i v L P u U A '$' Σ κ)
--- a/sys/lib/rootstub
+++ b/sys/lib/rootstub
@@ -119,48 +119,7 @@
mkdir -p mail/tmp
mkdir -p mips/bin/aux
mkdir -p mips/lib/ape
-mkdir -p mnt/acme
-mkdir -p mnt/apeselect
-mkdir -p mnt/apm
-mkdir -p mnt/arch
-mkdir -p mnt/cd
-mkdir -p mnt/cons
-mkdir -p mnt/cons/cons
-mkdir -p mnt/cons/consctl
-mkdir -p mnt/consoles
-mkdir -p mnt/doc
-mkdir -p mnt/exportfs/0
-mkdir -p mnt/exportfs/1
-mkdir -p mnt/exportfs/10
-mkdir -p mnt/exportfs/11
-mkdir -p mnt/exportfs/12
-mkdir -p mnt/exportfs/13
-mkdir -p mnt/exportfs/14
-mkdir -p mnt/exportfs/15
-mkdir -p mnt/exportfs/16
-mkdir -p mnt/exportfs/2
-mkdir -p mnt/exportfs/3
-mkdir -p mnt/exportfs/4
-mkdir -p mnt/exportfs/5
-mkdir -p mnt/exportfs/6
-mkdir -p mnt/exportfs/7
-mkdir -p mnt/exportfs/8
-mkdir -p mnt/exportfs/9
-mkdir -p mnt/keys
-mkdir -p mnt/lp
-mkdir -p mnt/netkeys
-mkdir -p mnt/news
-mkdir -p mnt/plumb
-mkdir -p mnt/rdb
-mkdir -p mnt/temp
-mkdir -p mnt/term
-mkdir -p mnt/ums
-mkdir -p mnt/vmware
-mkdir -p mnt/web
-mkdir -p mnt/webcookies
-mkdir -p mnt/wiki
-mkdir -p mnt/wrap
-mkdir -p mnt/wsys
+mkdir -p mnt
mkdir -p n
mkdir -p power/bin/ape
mkdir -p power/bin/audio
--- a/sys/lib/sysconfig/proto/cdproto
+++ b/sys/lib/sysconfig/proto/cdproto
@@ -55,32 +55,6 @@
acme d775
+
mnt d775
- acme d555
- apeselect d555
- apm d555
- cd d555
- cons d555
- cons d555
- consctl d555
- consoles d555
- doc d555
- exportfs d555
- *
- keys d555
- lp d555
- netkeys d555
- news d555
- plumb d555
- rdb d555
- temp d555
- term d555
- ums d555
- vmware d555
- web d555
- webcookies d555
- wiki d555
- wrap d555
- wsys d555
n d775
sys d775
games d775
--- a/sys/src/cmd/vt/consctl.c
+++ b/sys/src/cmd/vt/consctl.c
@@ -20,13 +20,13 @@
sysfatal("segattach: %r");
/* a pipe to simulate consctl */
- if(bind("#|", "/mnt/cons/consctl", MBEFORE) < 0
- || bind("/mnt/cons/consctl/data1", "/dev/consctl", MREPL) < 0)
+ if(bind("#|", "/mnt/consctl", MBEFORE) < 0
+ || bind("/mnt/consctl/data1", "/dev/consctl", MREPL) < 0)
sysfatal("bind consctl: %r");
/* a pipe to simulate the /dev/cons */
- if(bind("#|", "/mnt/cons/cons", MREPL) < 0
- || bind("/mnt/cons/cons/data1", "/dev/cons", MREPL) < 0)
+ if(bind("#|", "/mnt/cons", MREPL) < 0
+ || bind("/mnt/cons/data1", "/dev/cons", MREPL) < 0)
sysfatal("bind cons: %r");
switch(fork()){