use mntgen for /mnt and /mnt/exportfs

This commit is contained in:
glenda 2011-12-02 06:05:23 +01:00
parent 015f7f5112
commit b56d307ce6
6 changed files with 11 additions and 72 deletions

View file

@ -14,6 +14,8 @@ bind -a #¤ /dev
# mount points # mount points
mount -a /srv/slashn /n mount -a /srv/slashn /n
mount -a /srv/slashmnt /mnt
mount -a /srv/mntexport /mnt/exportfs
# authentication # authentication
mount -a /srv/factotum /mnt mount -a /srv/factotum /mnt

View file

@ -13,6 +13,8 @@ nusbrc
# mount points # mount points
mntgen -s slashn && chmod 666 /srv/slashn 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 # name translation, cs sets /dev/sysname
ndb/cs ndb/cs

View file

@ -3,6 +3,8 @@
TIMESYNCARGS=(-rLa1000000) TIMESYNCARGS=(-rLa1000000)
mntgen -s slashn && chmod 666 /srv/slashn 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 # bind all likely devices
for(i in S f k t m i v L P u U A '$' Σ κ) for(i in S f k t m i v L P u U A '$' Σ κ)

View file

@ -119,48 +119,7 @@ mkdir -p mail/queue
mkdir -p mail/tmp mkdir -p mail/tmp
mkdir -p mips/bin/aux mkdir -p mips/bin/aux
mkdir -p mips/lib/ape mkdir -p mips/lib/ape
mkdir -p mnt/acme mkdir -p mnt
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 n mkdir -p n
mkdir -p power/bin/ape mkdir -p power/bin/ape
mkdir -p power/bin/audio mkdir -p power/bin/audio

View file

@ -55,32 +55,6 @@ mips d775
acme d775 acme d775
+ +
mnt 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 n d775
sys d775 sys d775
games d775 games d775

View file

@ -20,13 +20,13 @@ consctl(void)
sysfatal("segattach: %r"); sysfatal("segattach: %r");
/* a pipe to simulate consctl */ /* a pipe to simulate consctl */
if(bind("#|", "/mnt/cons/consctl", MBEFORE) < 0 if(bind("#|", "/mnt/consctl", MBEFORE) < 0
|| bind("/mnt/cons/consctl/data1", "/dev/consctl", MREPL) < 0) || bind("/mnt/consctl/data1", "/dev/consctl", MREPL) < 0)
sysfatal("bind consctl: %r"); sysfatal("bind consctl: %r");
/* a pipe to simulate the /dev/cons */ /* a pipe to simulate the /dev/cons */
if(bind("#|", "/mnt/cons/cons", MREPL) < 0 if(bind("#|", "/mnt/cons", MREPL) < 0
|| bind("/mnt/cons/cons/data1", "/dev/cons", MREPL) < 0) || bind("/mnt/cons/data1", "/dev/cons", MREPL) < 0)
sysfatal("bind cons: %r"); sysfatal("bind cons: %r");
switch(fork()){ switch(fork()){