Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Chrooted Arch Linux environment setup script for Android
cd /data/local/arch
if ! mountpoint -q dev; then
mount -t proc /proc proc
mount -o bind /dev dev
mount -o bind /dev/pts dev/pts
chroot . /bin/bash -c "source /etc/profile; export HOME=/home/${USER}; export TERM=xterm-256color; clear; su - ${USER}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment