Skip to content

Commit

Permalink
tests: add support for amazonlinux:2023
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pb8o committed Jan 10, 2025
1 parent 0e36ec4 commit a5ffb7a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/test-popular-containers/build_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function make_rootfs {
systemd-nspawn --timezone=off --pipe -i $IMG /bin/sh <<EOF
set -x
. /etc/os-release
passwd -d root
case \$ID in
ubuntu)
export DEBIAN_FRONTEND=noninteractive
Expand All @@ -61,7 +60,15 @@ alpine)
rc-update add local default
echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >>/etc/inittab
;;
amzn)
dnf update
dnf install -y openssh-server iproute passwd
# re-do this
ln -svf /etc/systemd/system/fcnet.service /etc/systemd/system/sysinit.target.wants/fcnet.service
rm -fv /etc/systemd/system/getty.target.wants/[email protected]
;;
esac
passwd -d root
EOF
}

Expand All @@ -70,3 +77,4 @@ make_rootfs ubuntu:22.04
make_rootfs ubuntu:24.04
make_rootfs ubuntu:24.10
# make_rootfs ubuntu:latest
make_rootfs amazonlinux:2023

0 comments on commit a5ffb7a

Please sign in to comment.