Skip to content

Instantly share code, notes, and snippets.

@vinhjaxt
Created December 11, 2021 10:21
Show Gist options
  • Save vinhjaxt/290f1312c8cf6d8243249de6a6abf95d to your computer and use it in GitHub Desktop.
Save vinhjaxt/290f1312c8cf6d8243249de6a6abf95d to your computer and use it in GitHub Desktop.
X96Air Chroot
#!/usr/bin/env bash
sudo apt install -y qemu-user-static
sudo cp "$(which qemu-arm-static)" ./usr/bin
sudo cp /etc/resolv.conf ./etc/resolv.conf
sudo mount --bind /dev ./dev/
sudo mount --bind /sys ./sys/
sudo mount --bind /proc ./proc/
sudo mount --bind /dev/pts ./dev/pts
sudo chroot .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment