debian: 支持安装 9, 10 (ELTS)

This commit is contained in:
bin456789
2024-07-14 22:11:53 +08:00
parent 950f4bc45e
commit c1713c406e
5 changed files with 111 additions and 64 deletions

View File

@ -165,4 +165,5 @@ d-i preseed/late_command string true; \
if [ "$link_grub_dir" = 1 ]; then ln -s grub /target/boot/grub2; fi; \
in-target systemctl enable ssh; \
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf || \
echo "PermitRootLogin yes" >>/target/etc/ssh/sshd_config