Update pve6.x

This commit is contained in:
spiritlhl 2023-06-22 13:14:21 +00:00
parent a797083874
commit 8ecf6c79a8
2 changed files with 12 additions and 1 deletions

View file

@ -18,6 +18,7 @@
- 部分机器的IPV6物理接口使用auto类型无法安装PVE修改为static类型并重写配置
- 由于上面这条修复已支持在Linode平台安装PVE了
- 修复低版本PVE还安装ifupdown2的问题7.x以下版本使用ifupdown也足够了
- 由于上面这条修复Hetzner的Debian10系统可以安装PVE了
[更新日志](CHANGELOG.md)

View file

@ -103,6 +103,16 @@ else
interface=${interface_1}
fi
mac_address=$(ip -o link show dev ${interface} | awk '{print $17}')
# 检查是否存在特定行
if grep -Fxq "# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:" /etc/network/interfaces.d/50-cloud-init && grep -Fxq "# network: {config: disabled}" /etc/network/interfaces.d/50-cloud-init; then
echo "Creating /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg."
if [ ! -f "/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg" ]; then
echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
_green "Please restart the system for the changes to take effect."
_green "请执行 reboot 重启系统后再次自行本脚本"
exit 1
fi
fi
check_cdn() {
local o_url=$1
@ -422,7 +432,7 @@ fi
rm "$temp_file_apt_fix"
output=$(apt-get update 2>&1)
if echo $output | grep -q "NO_PUBKEY"; then
_yellow "try sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys missing key"
_yellow "try sudo apt-key adv --keyserver keyserver.ubuntu.com --recvrebuild_interface-keys missing key"
exit 1
fi
# 修复可能存在的auto类型