Created
April 7, 2016 20:06
-
-
Save pgrandin/8f19f525ad5254789663238fd468c3cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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