From 382feb49c7710568b17f1369a24f8b79c11be60b Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 22 Jul 2023 21:44:58 +0800 Subject: [PATCH] =?UTF-8?q?debian:=20=E4=BF=AE=E5=A4=8D=20debian=2010=20ss?= =?UTF-8?q?hd=5Fconfig=20=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E8=A2=AB?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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