namespace 794 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. mount -a /boot /bin
  20. # authentication
  21. mount -a /srv/factotum /mnt
  22. # standard bin
  23. bind /$cputype/bin /bin
  24. bind -a /rc/bin /bin
  25. # internal networks
  26. # mount -a /srv/ip /net
  27. bind -a #l /net
  28. bind -a #I /net
  29. mount -a /srv/cs /net
  30. mount -a /srv/dns /net
  31. mount -a /srv/net /net
  32. mount -b /srv/ssh /net
  33. # usbd, mainly disks
  34. mount /srv/usb /n/usb
  35. mount -a /srv/usb /dev
  36. bind -c /usr/$user/tmp /tmp
  37. cd /usr/$user
  38. . /lib/namespace.local
  39. . /lib/namespace.$sysname
  40. . /cfg/$sysname/namespace