Skip to content

Instantly share code, notes, and snippets.

@PlatinumMaster
Last active May 25, 2022 16:07
Show Gist options
  • Save PlatinumMaster/223616e0b37f42a0cac05a0f765dca63 to your computer and use it in GitHub Desktop.
Save PlatinumMaster/223616e0b37f42a0cac05a0f765dca63 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