The REC ARM64 build has been broken for a while, likely due to the
change of Jenkins builder nodes from Ubuntu 16.04 to 18.04. A number of
fixes are needed, not all known at this time. This change is a start at
fixing them.
1) Force installation of libvirt-daemon-system because the start of
libvirt is failing when it used to succeed.
2) Install "rename" command. This was present in Ubuntu 16.04, missing
in 18.04 and back again in 20.04. The Arm build hosts were changed
from 16.04 to 18.04 a while back and the build has been broken ever
since (due to multiple issues).
Change-Id: I1cf7ed62bd796bb20da21c9205487c0c6a079e85
Signed-off-by: Paul Carver <pcarver@att.com>
if apt --version 2>1 >/dev/null; then
if ! createrepo --version 2>1 >/dev/null; then
sudo apt update
- sudo apt install -y createrepo libguestfs-tools jq
+ sudo apt install -y createrepo libguestfs-tools jq libvirt-daemon-system
fi
else
sudo yum -y install createrepo libguestfs-tools-c jq
mkdir -p "$upload_dir1"
mkdir -p "$upload_dir2"
+sudo apt install -y rename # "rename" disappeared in Ubuntu 18.04
platform_arch=$(uname -m)
if [ "${platform_arch}" != 'x86_64' ]; then
- # On non-x86 architecture, rename the artifacts appropiately
+ # On non-x86 architecture, rename the artifacts appropriately
pushd "$WORKSPACE/work/results/images/"
rename "s/\./.${platform_arch}./" *.*
sed -i "s/\./.${platform_arch}./" *."${platform_arch}".iso.*