core: 不使用 cloud-init 初始化系统

This commit is contained in:
bin456789
2025-01-10 00:43:26 +08:00
parent abdbf03eb0
commit 4149cf2e6e
7 changed files with 770 additions and 124 deletions

View File

@ -177,4 +177,8 @@ d-i preseed/late_command string true; \
if [ -n "$ssh_port" ] && ! [ "$ssh_port" = 22 ]; then \
echo "Port $ssh_port" >/target/etc/ssh/sshd_config.d/01-change-ssh-port.conf || \
echo "Port $ssh_port" >>/target/etc/ssh/sshd_config; \
fi
fi; \
cp /fix-eth-name.sh /target/; \
cp /fix-eth-name.service /target/etc/systemd/system/; \
in-target systemctl enable fix-eth-name