-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into misc-changes-7
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
} | ||
|
||
|
@@ -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 |