minimal-centos missing yumdownloader

Bug #1676462 reported by Lenny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Invalid
Undecided
Unassigned

Bug Description

# disk-image-create --version
2.0.1

# sudo disk-image-create -x -t qcow2 --no-tmpfs --qemu-img-options 'compat=0.10' --image-size 2 vm centos-minimal

Error:
.................
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:87 : yumdownloader --releasever=7 --setopt=reposdir=/tmp/dib_build.PyC1H0Za/hooks/yum.repos.d --destdir=/tmp/tmp.0EIpAOLO72 basesystem filesystem setup centos-release
/tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot: line 87: yumdownloader: command not found
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:91 : rc=127
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:92 : rm -rf /tmp/tmp.Im71XWCpEU
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:93 : [[ 127 != 0 ]]
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:94 : die 'Failed to download initial packages: basesystem filesystem setup centos-release '

According to [1] centos OS does not need yum-utils

[1] https://github.com/openstack/diskimage-builder/blob/958ea8a3372157fe62c3a2bb1fcd55a9cadedab1/diskimage_builder/elements/centos-minimal/README.rst#L6

Revision history for this message
Lenny (lennyb) wrote :

you need to install yum-utils on the host, where you run disk-image-builder

Changed in diskimage-builder:
status: New → Invalid
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.