Skip to content

Instantly share code, notes, and snippets.

@lvii
Created June 12, 2012 12:31
Show Gist options
  • Save lvii/2917233 to your computer and use it in GitHub Desktop.
Save lvii/2917233 to your computer and use it in GitHub Desktop.
#!/bin/bash
mount /dev/sda6 /mnt/gentoo/
mount /dev/sda2 /mnt/gentoo/boot/
mount -t proc proc /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
cp -L /etc/resolv.conf /mnt/gentoo/etc/
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment