core: 云镜像设置时区

This commit is contained in:
bin456789 2023-08-07 23:28:02 +08:00
parent 2e90561878
commit f180fd5be8
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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