Skip to content

Instantly share code, notes, and snippets.

@WaaromZoMoeilijk
Last active August 7, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaaromZoMoeilijk/40dff7f045b36733c0fc8c67f8fcbe86 to your computer and use it in GitHub Desktop.
Save WaaromZoMoeilijk/40dff7f045b36733c0fc8c67f8fcbe86 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Tech and Me, ©2016 - www.techandme.se
# Variable
IMG='/path'
MNT='/mnt/arm'
# Upgrade and update
apt-get autoclean
apt-get autoremove -y
apt-get update
apt-get upgrade -y
apt-get -f install -y
# Requirements
mkdir -p $MNT
apt-get install qemu-user-static -y
mount -o loop $IMG $MNT
cp /usr/bin/qemu-arm-static $MNT/usr/bin
mount --bind /dev $MNT/dev
mount --bind /proc $MNT/proc
mount --bind /sys $MNT/sys
chroot $MNT qemu-arm-static /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment