Skip to content

Commit 1644b3c

Browse files
Jonathan Woollett-Lightdianpopa
Jonathan Woollett-Light
authored andcommitted
Exclude msr-tools package on Arm
Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent 85580d7 commit 1644b3c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/tests/setup_rootfs.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ prepare_fc_rootfs() {
1111
SSH_DIR="$BUILD_DIR/ssh"
1212
RESOURCE_DIR="$2"
1313

14-
packages="udev systemd-sysv openssh-server iproute2 msr-tools"
14+
packages="udev systemd-sysv openssh-server iproute2"
15+
16+
# msr-tools is only supported on x86-64.
17+
arch=$(uname -m)
18+
if [ "${arch}" == "x86_64" ]; then
19+
packages="$packages msr-tools"
20+
fi
21+
1522
apt-get update
1623
apt-get install -y --no-install-recommends $packages
1724

0 commit comments

Comments
 (0)