diff --git a/debian.cfg b/debian.cfg index 8c89b9d..55f4460 100644 --- a/debian.cfg +++ b/debian.cfg @@ -65,6 +65,7 @@ d-i preseed/early_command string \ d-i partman/early_command string \ debconf-set partman-auto/disk "$(list-devices disk | head -n1)" +# debian 10 没有 /target/etc/ssh/sshd_config.d/ 文件夹 d-i preseed/late_command string \ echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf || \ - echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config + echo "PermitRootLogin yes" >>/target/etc/ssh/sshd_config