shithub: riscv

Download patch

ref: 8dec598474aacb3e9016a79eea43796842ae4af5
parent: 9dde88f86b56e33227c85cfc4e46dcaa27e7405b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 23 09:43:26 EST 2022

/lib/namespace: bind devtls to /net, mount /root after binding /srv

--- a/lib/namespace
+++ b/lib/namespace
@@ -1,7 +1,3 @@
-# root
-mount -aC #s/boot /root $rootspec
-bind -a $rootdir /
-
 # kernel devices
 bind #c /dev
 bind #d /fd
@@ -12,6 +8,10 @@
 bind -a #¤ /dev
 bind -qa #¶ /dev
 
+# root
+mount -C /srv/boot /root $rootspec
+bind -a $rootdir /
+
 # authentication
 mount -b /srv/factotum /mnt
 
@@ -22,7 +22,7 @@
 
 # standard bin
 bind /$cputype/bin /bin
-bind $rootdir'/rc' /rc
+bind $rootdir/rc /rc
 bind -a /rc/bin /bin
 
 # internal networks
@@ -29,6 +29,7 @@
 # mount -a /srv/ip /net
 bind -a #l /net
 bind -a #I /net
+bind -a #a /net
 mount -a /srv/cs /net
 mount -a /srv/dns /net
 mount -a /srv/net /net