Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading