Bug 501886

Summary: exec: chroot not found
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: markmc, mbooth, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-12 17:20:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2009-05-21 08:39:36 UTC
[Actually this bug is on EPEL-5, but we don't have
a way to file libguestfs bugs against EPEL at the
moment]

On some distributions, chroot is located in /usr/sbin.
If this is not on the path, then you get the error:

  exec: chroot not found

when building the appliance.

The workaround is to add /usr/sbin to PATH.

Comment 1 Mark McLoughlin 2009-05-25 14:50:26 UTC
Moving upstream

Comment 2 Richard W.M. Jones 2011-04-12 17:20:47 UTC
All platforms that we care about now have /usr/sbin
in the path.  This does still affect RHEL 5 but we
workaround that in the spec file.