mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
2023.07.31
This commit is contained in:
parent
687b7c4511
commit
8063af5580
1 changed files with 4 additions and 2 deletions
|
@ -948,8 +948,10 @@ rebuild_cloud_init
|
||||||
running_kernel=$(uname -r)
|
running_kernel=$(uname -r)
|
||||||
_green "Running kernel: $(pveversion)"
|
_green "Running kernel: $(pveversion)"
|
||||||
installed_kernels=($(dpkg -l 'pve-kernel-*' | awk '/^ii/ {print $2}' | cut -d'-' -f3- | sort -V))
|
installed_kernels=($(dpkg -l 'pve-kernel-*' | awk '/^ii/ {print $2}' | cut -d'-' -f3- | sort -V))
|
||||||
latest_kernel=${installed_kernels[-1]}
|
if [ ${#installed_kernels[@]} -gt 0 ]; then
|
||||||
_green "PVE latest kernel: $latest_kernel"
|
latest_kernel=${installed_kernels[-1]}
|
||||||
|
_green "PVE latest kernel: $latest_kernel"
|
||||||
|
fi
|
||||||
chattr +i /etc/network/interfaces
|
chattr +i /etc/network/interfaces
|
||||||
if [ ! -s "/etc/resolv.conf" ]
|
if [ ! -s "/etc/resolv.conf" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue