From 1644b3cb4947b927f29da795492284b4b10f2405 Mon Sep 17 00:00:00 2001 From: Jonathan Woollett-Light Date: Thu, 17 Nov 2022 13:19:38 +0000 Subject: [PATCH] Exclude msr-tools package on Arm Signed-off-by: Jonathan Woollett-Light --- resources/tests/setup_rootfs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/tests/setup_rootfs.sh b/resources/tests/setup_rootfs.sh index 0882d6bb941..00aa3cbe7d1 100755 --- a/resources/tests/setup_rootfs.sh +++ b/resources/tests/setup_rootfs.sh @@ -11,7 +11,14 @@ prepare_fc_rootfs() { SSH_DIR="$BUILD_DIR/ssh" RESOURCE_DIR="$2" - packages="udev systemd-sysv openssh-server iproute2 msr-tools" + packages="udev systemd-sysv openssh-server iproute2" + + # msr-tools is only supported on x86-64. + arch=$(uname -m) + if [ "${arch}" == "x86_64" ]; then + packages="$packages msr-tools" + fi + apt-get update apt-get install -y --no-install-recommends $packages