mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 06:55:56 +08:00
增加禁用 cloud-init 的语句
touch /etc/cloud/cloud-init.disabled
This commit is contained in:
parent
4ced88bb83
commit
d9f6c1dc03
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue