losinggeneration

chroot

Mar 29th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. # Put this file in the arch chroot chmod +x it and call it from that directory
  2. mount --bind /dev dev
  3. mount -t devpts none dev/pts
  4. mount -t proc none proc
  5. mount -t sysfs none sys
  6. # Only needed if you want to share the pacman pkg cache
  7. mount --bind /var/cache/pacman/pkg var/cache/pacman/pkg
  8. chroot . /bin/bash
  9. umount var/cache/pacman/pkg
  10. umount sys
  11. umount proc
  12. umount dev/pts
  13. umount dev
Advertisement
Add Comment
Please, Sign In to add comment