Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AkiAfroo/4c9f869932c11e0a76ec4bdbf2d2d70d to your computer and use it in GitHub Desktop.
Save AkiAfroo/4c9f869932c11e0a76ec4bdbf2d2d70d to your computer and use it in GitHub Desktop.
Arch Linux chroot installation on the Steam Link.
#!/bin/busybox ash
# Mount drive
mkdir -p /mnt/disk
mount /dev/block/sda1 /mnt/disk
# Get ready to chroot
mount -t proc proc /mnt/disk/proc/
mount -t sysfs sys /mnt/disk/sys/
mount -o bind /dev /mnt/disk/dev/
mount -t devpts devpts /mnt/disk/dev/pts/
# chroot into new installation
echo "Changing root now"
chroot /mnt/disk /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment