PDA

View Full Version : Running scripts in chroot



sandyd
November 11th, 2011, 09:03 PM
How would I get a script to run commands in a chroot?

MadCow108
November 11th, 2011, 09:12 PM
man chroot

chroot [OPTION] NEWROOT [COMMAND [ARG]...]



sudo chroot precise-amd64/ ls
bin dev home lib64 mnt proc run selinux sys usr
boot etc lib media opt root sbin srv tmp var