#!/bin/sh

# Sets up a 64-bit environment in the current directory
# with mounts for full functionality and changes into it.

mount --bind /dev dev
mount --bind /usr/src usr/src
mount --bind /home home
mount -t proc proc proc
mount -t sysfs sysfs sys
mount -t tmpfs tmpfs tmp
linux64 chroot .
umount proc sys tmp dev usr/src home

