Skip to content

Instantly share code, notes, and snippets.

@aggieben
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aggieben/9959710 to your computer and use it in GitHub Desktop.
Save aggieben/9959710 to your computer and use it in GitHub Desktop.
mount -t proc proc /mnt/gentoo/proc; mount --rbind /sys /mnt/gentoo/sys; mount --rbind /dev /mnt/gentoo/dev; chroot /mnt/gentoo /bin/bash;
source /etc/profile; export PS1="(chroot) $PS1"
cd; umount -l /mnt/gentoo/dev{/shm,/pts,}; umount -l /mnt/gentoo{/boot,/proc,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment