move factotum from /mnt to /mnt/factotum

This commit is contained in:
cinap_lenrek 2011-12-02 02:29:41 +01:00
parent 02f6b14126
commit d63b461ecf
2 changed files with 20 additions and 12 deletions

View file

@ -8,14 +8,20 @@ for(i in m i P S t u '$')
mount -qb /srv/cons /dev
# usb listener
nusbrc
# 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
# move factotum from /mnt to /mnt/factotum
mount /srv/factotum /mnt/temp
unmount /srv/factotum /mnt
bind /mnt/temp/factotum /mnt/factotum
unmount /mnt/temp
# usb listener
nusbrc
# name translation, cs sets /dev/sysname
ndb/cs
sysname=`{cat /dev/sysname}
@ -68,11 +74,6 @@ case `{ echo $sysname; ndb/query sys $sysname dom
} | sed 's,[^ ]+=,,g'}}
# cpu+auth server
# prevent factotum deadlock
aux/stub -d /mnt/keys
aux/stub -d /mnt/netkeys
auth/keyfs -wp -m /mnt/keys /adm/keys
aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp
case *

View file

@ -2,10 +2,6 @@
# terminal startup
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 '$' Σ κ)
bind -a '#'^$i /dev >/dev/null >[2=1]
@ -13,6 +9,17 @@ rm -f /env/i
mount -qb /srv/cons /dev
# 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
# move factotum from /mnt to /mnt/factotum
mount /srv/factotum /mnt/temp
unmount /srv/factotum /mnt
bind /mnt/temp/factotum /mnt/factotum
unmount /mnt/temp
# usb listener
nusbrc