Skip to content

Commit a5ffb7a

Browse files
committed
tests: add support for amazonlinux:2023
Test AL2023 in the popular containers test. Had to rework the build rootfs script to account for some small AL2023 differences. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 0e36ec4 commit a5ffb7a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/test-popular-containers/build_rootfs.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ function make_rootfs {
4848
systemd-nspawn --timezone=off --pipe -i $IMG /bin/sh <<EOF
4949
set -x
5050
. /etc/os-release
51-
passwd -d root
5251
case \$ID in
5352
ubuntu)
5453
export DEBIAN_FRONTEND=noninteractive
@@ -61,7 +60,15 @@ alpine)
6160
rc-update add local default
6261
echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >>/etc/inittab
6362
;;
63+
amzn)
64+
dnf update
65+
dnf install -y openssh-server iproute passwd
66+
# re-do this
67+
ln -svf /etc/systemd/system/fcnet.service /etc/systemd/system/sysinit.target.wants/fcnet.service
68+
rm -fv /etc/systemd/system/getty.target.wants/[email protected]
69+
;;
6470
esac
71+
passwd -d root
6572
EOF
6673
}
6774

@@ -70,3 +77,4 @@ make_rootfs ubuntu:22.04
7077
make_rootfs ubuntu:24.04
7178
make_rootfs ubuntu:24.10
7279
# make_rootfs ubuntu:latest
80+
make_rootfs amazonlinux:2023

0 commit comments

Comments
 (0)