diff --git a/tsbin/mlnx_bf_configure b/tsbin/mlnx_bf_configure index b34b067..3c3cbb8 100755 --- a/tsbin/mlnx_bf_configure +++ b/tsbin/mlnx_bf_configure @@ -346,6 +346,11 @@ do fi done +if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then + info "Running in chroot environment. Exiting..." + exit 0 +fi + if [ $RC -ne 0 ]; then error "Exiting due to failures. RC=$RC" exit $RC