Skip to content

Commit 4a28b9c

Browse files
pb8ozulinx86
authored andcommitted
test-popular-containers: add ubuntu 23.10 and 24.04
Add support for testing Ubuntu 23.10 and 24.04 Remove 23.04 since it is not supported anymore. The `--timezone=off` parameter is needed as building the rootfs fails for 24.04 without it, with a conflict that it could not replace it (probably because systemd-nspawn bind mounts it). Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 011953b commit 4a28b9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/test-popular-containers/build_rootfs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ function make_rootfs {
4343
umount -l mnt
4444
rmdir mnt
4545

46-
systemd-nspawn --pipe -i $IMG /bin/sh <<EOF
46+
# --timezone=off parameter is needed to prevent systemd-nspawn from
47+
# bind-mounting /etc/timezone, which causes a file conflict in Ubuntu 24.04
48+
systemd-nspawn --timezone=off --pipe -i $IMG /bin/sh <<EOF
4749
set -x
4850
. /etc/os-release
4951
passwd -d root
@@ -65,5 +67,6 @@ EOF
6567

6668
make_rootfs alpine:latest
6769
make_rootfs ubuntu:22.04
68-
make_rootfs ubuntu:23.04
70+
make_rootfs ubuntu:23.10
71+
make_rootfs ubuntu:24.04
6972
# make_rootfs ubuntu:latest

0 commit comments

Comments
 (0)