namespace 971 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # root
  2. mount -aC #s/boot /root $rootspec
  3. bind -a $rootdir /
  4. bind -c $rootdir/mnt /mnt
  5. # kernel devices
  6. bind #c /dev
  7. bind #d /fd
  8. bind -c #e /env
  9. bind #p /proc
  10. bind -c #s /srv
  11. bind -a #¤ /dev
  12. bind -a #S /dev
  13. bind -b #k /dev
  14. bind -a #κ /dev
  15. bind -a #u /dev
  16. bind -b #P /dev
  17. # mount points
  18. mount -a /srv/slashn /n
  19. # authentication
  20. mount -a /srv/factotum /mnt
  21. # standard bin
  22. bind /$cputype/bin /bin
  23. bind -a /rc/bin /bin
  24. # golang
  25. bind -a /sys/go/bin/plan9_$cputype /bin
  26. # u-root
  27. # u-root assumes its binaries are in /bbin and uses
  28. # #! scripts for that purpose.
  29. bind /$cputype/bbin /bbin
  30. bind -a /$cputype/bbin /bin
  31. # internal networks
  32. # mount -a /srv/ip /net
  33. bind -a #l /net
  34. bind -a #I /net
  35. mount -a /srv/cs /net
  36. mount -a /srv/dns /net
  37. mount -a /srv/net /net
  38. mount -b /srv/ssh /net
  39. # usbd, mainly disks
  40. mount /srv/usb /n/usb
  41. mount -a /srv/usb /dev
  42. bind -c /usr/$user/tmp /tmp
  43. cd /usr/$user
  44. . /lib/namespace.local
  45. . /lib/namespace.$sysname
  46. . /cfg/$sysname/namespace