Skip to content

Commit 3276e19

Browse files
bug: stop installing fio on amazon linux (#5129)
we can't install fio on amazon linux because it brings the centos-release package as one of its dependencies. the latter overwrites /etc/os-release in the target system making it look like a centos installation
1 parent 54962bb commit 3276e19

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/common/common.sh

+13
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,19 @@ function install_host_dependencies_fio() {
759759
return
760760
fi
761761

762+
# we can't install fio on amazon linux because it brings, as a dependency,
763+
# a package called `centos-release` that ends up overwriting the amazon
764+
# linux release file, making it look like a centos machine.
765+
if [ "$LSB_DIST" = "amzn" ]; then
766+
logWarn "Skipping fio installation on Amazon Linux. If you prefer, you can cancel this"
767+
logWarn "installation now and manually install fio using 'yum install fio'. Ignoring this"
768+
logWarn "message may cause some of the preflight checks to generate warnings later on."
769+
logWarn "Do you want to continue with the installation without fio?"
770+
if ! confirmY ; then
771+
bail "Installation cancelled by user"
772+
fi
773+
return
774+
fi
762775

763776
if [ "$AIRGAP" != "1" ] && [ -n "$DIST_URL" ]; then
764777
local package="host-fio.tar.gz"

0 commit comments

Comments
 (0)