summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libguestfs.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/libguestfs.spec.in b/libguestfs.spec.in
index aac7b2bc..5195d753 100644
--- a/libguestfs.spec.in
+++ b/libguestfs.spec.in
@@ -256,6 +256,10 @@ createrepo repo
--enable-debug-command \
%{extra}
+# This ensures that /usr/sbin/chroot is on the path. Not needed
+# except for RHEL 5, it shouldn't do any harm on other platforms.
+export PATH=/usr/sbin:$PATH
+
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir
# not the site dir.
make INSTALLDIRS=vendor %{?_smp_mflags}