ubuntu-minimal doesn't find focal debootstrap script on CentOS 7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When trying to build an image with the ubuntu-minimal element and the DIB_RELEASE="focal" variable on a CentOS 7 host, diskimage-builder exits with the following error:
E: No such script: /usr/share/
The official CentOS 7 repositories do not provide the debootstrap package, which is a dependency for the ubuntu-minimal element. The simplest solution for this problem is to add the EPEL repository to the system, which provides the debootstrap package.
However, this solution is also in itself the source of the above error. The package version of debootstrap from EPEL is outdated and does not include the script for Ubuntu Focal.
Inspecting the source code of debootstrap will reveal that the script for Ubuntu Focal (scripts/focal) is just a symlink to the script for Ubuntu Gutsy (scripts/gutsy).
Therefore, the final solution, although ad hoc, would be to recreate the same symlink on the CentOS 7 host.
This is not a diskimage-builder bug, but I believe this issue should be addressed in the documentation so that users can apply this solution, even if it's not the ideal one, and help reduce their time spent debugging.
Fix proposed to branch: master /review. opendev. org/c/openstack /diskimage- builder/ +/806308
Review: https:/