# namespace file for rerootwin script# kernel devicesbind #c /devbind #d /fdbind -c #e /envbind #p /procbind -c #s /srvbind -a #¤ /devbind -a #S /devbind -b #k /devbind -a #κ /devbind -a #u /devbind -b #P /devbind -a #l /netbind -a #I /net# mount pointsmount -a /srv/slashn $pivot#devices from previous nsmount -c /srv/$oldterm $pivot/$oldtermmount -c /srv/$oldwsys $pivot/$oldwsysbind $pivot/$oldterm/dev/cons /dev/consbind $pivot/$oldterm/dev/consctl /dev/consctlbind -a $pivot/$oldterm/dev /devbind -b $pivot/$oldwsys /dev# authenticationmount -a #s/$authagent /mnt# rootmount -ac #s/$nsroot /root $rootspecbind -a $rootdir /bind -b $rootdir/mnt /mntmount -a #s/bootpaq /boot# standard binbind -a /boot /binbind -b /root/bin /binbind -b /$cputype/bin /binbind -a /rc/bin /bin# internal networksmount -a /srv/slashn /nmount -a /srv/cs /netmount -a /srv/dns /netmount -a /srv/net /netmount -b /srv/ssh /net# usbd, mainly disksmount /srv/usb /n/usbmount -a /srv/usb /devmount -c /srv/hubfs /n/hubfs# put /mnt/term and wsys back bind -bc $pivot/$oldterm /mnt/termbind -bc $pivot/$oldwsys /mnt/wsysbind -c /usr/$user/tmp /tmpcd /usr/$user. /lib/namespace.local. /lib/namespace.$sysname. /cfg/$sysname/namespace
# namespace file for rerootwin script
# kernel devices
bind #c /dev
bind #d /fd
bind -c #e /env
bind #p /proc
bind -c #s /srv
bind -a #¤ /dev
bind -a #S /dev
bind -b #k /dev
bind -a #κ /dev
bind -a #u /dev
bind -b #P /dev
bind -a #l /net
bind -a #I /net
# mount points
mount -a /srv/slashn $pivot
#devices from previous ns
mount -c /srv/$oldterm $pivot/$oldterm
mount -c /srv/$oldwsys $pivot/$oldwsys
bind $pivot/$oldterm/dev/cons /dev/cons
bind $pivot/$oldterm/dev/consctl /dev/consctl
bind -a $pivot/$oldterm/dev /dev
bind -b $pivot/$oldwsys /dev
# authentication
mount -a #s/$authagent /mnt
# root
mount -ac #s/$nsroot /root $rootspec
bind -a $rootdir /
bind -b $rootdir/mnt /mnt
mount -a #s/bootpaq /boot
# standard bin
bind -a /boot /bin
bind -b /root/bin /bin
bind -b /$cputype/bin /bin
bind -a /rc/bin /bin
# internal networks
mount -a /srv/slashn /n
mount -a /srv/cs /net
mount -a /srv/dns /net
mount -a /srv/net /net
mount -b /srv/ssh /net
# usbd, mainly disks
mount /srv/usb /n/usb
mount -a /srv/usb /dev
mount -c /srv/hubfs /n/hubfs
# put /mnt/term and wsys back
bind -bc $pivot/$oldterm /mnt/term
bind -bc $pivot/$oldwsys /mnt/wsys
bind -c /usr/$user/tmp /tmp
cd /usr/$user
. /lib/namespace.local
. /lib/namespace.$sysname
. /cfg/$sysname/namespace