Created
February 12, 2013 04:21
-
-
Save shaunhey/4760221 to your computer and use it in GitHub Desktop.
bash script for entering Arch Linux chroot on Samsung Chromebook (ARM) -- Based on the excellent instructions found at http://solvitor.com/2013/01/02/lamp-stack-on-an-arm-chromebook/
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
#!/bin/bash | |
echo "chrooting to Arch Linux" | |
sudo cp /etc/resolv.conf /usr/local/arch/etc/resolv.conf | |
sudo mount -o bind /dev /usr/local/arch/dev | |
sudo mount -t devpts -o rw,nosuid,noexec,relatime,mode=620,gid=5 none /usr/local/arch/dev/pts | |
sudo mount -t proc proc /usr/local/arch/proc | |
sudo mount -t sysfs sys /usr/local/arch/sys | |
sudo chroot /usr/local/arch /bin/su - <your username here> | |
echo "leaving Arch Linux chroot" | |
sudo umount /usr/local/arch/dev/pts | |
sudo umount /usr/local/arch/dev | |
sudo umount /usr/local/arch/proc | |
sudo umount /usr/local/arch/sys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment