Skip to content

Instantly share code, notes, and snippets.

@pgrandin
Created April 7, 2016 20:06
Show Gist options
  • Save pgrandin/8f19f525ad5254789663238fd468c3cd to your computer and use it in GitHub Desktop.
Save pgrandin/8f19f525ad5254789663238fd468c3cd to your computer and use it in GitHub Desktop.
cd $mountpoint
tar xjpf /var/${STAGEFILE}
mount ${device} $mountpoint/boot
cp /usr/bin/qemu-arm usr/bin/qemu-arm
/etc/init.d/qemu-binfmt start
mkdir -p usr/portage
mount --bind /usr/portage usr/portage
mount -t tmpfs -o size=8G tmpfs var/tmp
mount -t tmpfs -o size=6G tmpfs var/cache
mount -t tmpfs -o size=2G tmpfs tmp/
mount -t proc proc proc
mount --rbind /sys sys
mount --make-rslave sys
mount --rbind /dev dev
mount --make-rslave dev
chroot . /bin/busybox mdev -s
chroot . /bin/bash setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment