From f180fd5be8f59de6a806b413d029bd4a028d64a6 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Mon, 7 Aug 2023 23:28:02 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BA=91=E9=95=9C=E5=83=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nocloud.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nocloud.yaml b/nocloud.yaml index 08c0afe..50dc9ec 100644 --- a/nocloud.yaml +++ b/nocloud.yaml @@ -1,5 +1,6 @@ #cloud-config datasource_list: [NoCloud] +timezone: Asia/Shanghai disable_root: false ssh_pwauth: true users: @@ -18,4 +19,6 @@ runcmd: # arch 没有 /etc/ssh/sshd_config.d/ 文件夹 - echo "PermitRootLogin yes" >/etc/ssh/sshd_config.d/01-permitrootlogin.conf || echo "PermitRootLogin yes" >>/etc/ssh/sshd_config - systemctl restart sshd - - echo -e '\nDone' >/dev/tty0 + # ubuntu 镜像运行 echo -e '\nDone' ,-e 会被显示出来 + - echo >/dev/tty0 + - echo Done >/dev/tty0