增加禁用 cloud-init 的语句

touch /etc/cloud/cloud-init.disabled
This commit is contained in:
spiritlhl 2023-10-22 13:47:55 +08:00 committed by GitHub
parent 4ced88bb83
commit d9f6c1dc03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#!/bin/bash
# from
# https://github.com/spiritLHLS/pve
# 2023.09.16
# 2023.10.22
########## 预设部分输出和部分中间变量
@ -173,6 +173,7 @@ rebuild_cloud_init() {
sed -i '/^\s*- set-passwords/s/^/#/' /etc/cloud/cloud.cfg
chattr +i /etc/cloud/cloud.cfg
fi
touch /etc/cloud/cloud-init.disabled
}
remove_source_input() {