Advertisement
metalx1000

Mount directories for chroot

Aug 3rd, 2014 (edited)
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. #!/bin/bash
  2. #mount dirs for chroot
  3. mnt="."
  4. for i in /dev /dev/pts /proc /sys /run
  5. do
  6.     sudo mount -B $i ${mnt}$i
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement