Building images on a fedora host will fail

Bug #1175980 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Unassigned

Bug Description

By default Fedora does not have /usr/local/bin set in the secure_path (/etc /sudoers) so running commands inside the chroot will fail with a:

chroot: failed to run command 'dib-run-parts': No such file or directory

Related to this bug report: https://review.openstack.org/#/c/27053/

description: updated
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Possible solution/workaround: http://paste.fedoraproject.org/10212/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/28414
Committed: http://github.com/stackforge/diskimage-builder/commit/e537e046d184021a6a41e7580e7911879e870238
Submitter: Jenkins
Branch: master

commit e537e046d184021a6a41e7580e7911879e870238
Author: Lucas Alvares Gomes <email address hidden>
Date: Tue May 7 13:20:35 2013 +0100

    Force the inclusion of /usr/local/bin in PATH.

    Sudo compiled with the --with-secure-path option enabled (default on
    Ubuntu, Fedora and potentially other distros) will cause sudo to ignore
    any changes made to the PATH variable in the user's environment (even when
    the -E option is used). Also, some distros might not have /usr/local/bin
    set in their sudoers secure_path causing the diskimage-builder to fail
    when building an image using such distros as host. This patch will force
    the inclusion of the /usr/local/bin in the PATH enviroment variable
    inside the chroot.

    Change-Id: Idb7156d8ff124bfe685cc721337d9bb21f49dc9e
    Fixes: bug #1175980

Changed in diskimage-builder:
status: New → Fix Committed
Changed in diskimage-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.