Skip to content

Commit

Permalink
Merge branch 'main' into misc-changes-7
Browse files Browse the repository at this point in the history
  • Loading branch information
roypat authored Jan 10, 2025
2 parents 8c8dd8d + a5ffb7a commit b15582b
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 b15582b

Please sign in to comment.