mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-10 17:25:50 +08:00
增加禁用 cloud-init 的语句
touch /etc/cloud/cloud-init.disabled
This commit is contained in:
parent
4ced88bb83
commit
d9f6c1dc03
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# from
|
# from
|
||||||
# https://github.com/spiritLHLS/pve
|
# 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
|
sed -i '/^\s*- set-passwords/s/^/#/' /etc/cloud/cloud.cfg
|
||||||
chattr +i /etc/cloud/cloud.cfg
|
chattr +i /etc/cloud/cloud.cfg
|
||||||
fi
|
fi
|
||||||
|
touch /etc/cloud/cloud-init.disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_source_input() {
|
remove_source_input() {
|
||||||
|
|
Loading…
Reference in a new issue