set env in chroot script

Elan Marikit emarikit at infoweapons.com
Fri Apr 27 06:33:00 UTC 2007


Greetz,

I am a newbie of FreeBSD and I want to know how to set environment 
inside chroot in a shell script.

My script looks like this:
chroot $NEWROOT /bin/sh -c "<command>"

And I want to set an environment, before the <command>.

Is it possible that it will inherit my parent environment? like the 
environment set in my script?

Thanks,
Elan


More information about the freebsd-questions mailing list