shithub: riscv

Download patch

ref: 1b017b8db468ea5977eeaabce01a072f792599a6
parent: 69e8a53ffe6c4d6032ba9425c89ac8b564aaf43b
author: cinap_lenrek <[email protected]>
date: Tue Jan 22 05:41:01 EST 2013

mount /n/other from /srv/boot instead of /srv/cwfs

this makes sure tcp boot will have ther user /tmp's
the same way as from local cwfs. we used /srv/cwfs
to prevent a deadlock with 9660srv as a root filesystem
which has been fixed now.

--- a/lib/namespace
+++ b/lib/namespace
@@ -31,9 +31,8 @@
 mount -a /srv/dns /net
 mount -a /srv/net /net
 
-mount -qC /srv/cwfs /n/other other
+mount -qC /srv/boot /n/other other
 bind -qc /n/other/usr/$user/tmp /usr/$user/tmp
-bind -qc /n/other/dist /dist
 
 bind -c /usr/$user/tmp /tmp
 cd /usr/$user
--- a/sys/lib/dist/usr/glenda/lib/profile
+++ b/sys/lib/dist/usr/glenda/lib/profile
@@ -1,6 +1,6 @@
 bind -a $home/bin/rc /bin
 bind -a $home/bin/$cputype /bin
-mount -qC /srv/cwfs /n/other other
+mount -qC /srv/boot /n/other other
 bind -qc /n/other/usr/$user/tmp $home/tmp
 bind -c $home/tmp /tmp
 if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
--- a/sys/lib/newuser
+++ b/sys/lib/newuser
@@ -19,7 +19,7 @@
 cat > lib/profile <<!
 bind -a $x^home/bin/rc /bin
 bind -a $x^home/bin/$x^cputype /bin
-mount -qC /srv/cwfs /n/other other
+mount -qC /srv/boot /n/other other
 bind -qc /n/other/usr/$x^user/tmp $x^home/tmp
 bind -c $x^home/tmp /tmp
 font=/lib/font/bit/vga/unicode.font