[pve-devel] [PATCH manager 1/2] 5to6: add check for running kernel version

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 28 08:39:40 CEST 2019


On 6/27/19 9:02 PM, Fabian Grünbichler wrote:
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  PVE/CLI/pve5to6.pm | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/PVE/CLI/pve5to6.pm b/PVE/CLI/pve5to6.pm
> index 94535776..98b35594 100644
> --- a/PVE/CLI/pve5to6.pm
> +++ b/PVE/CLI/pve5to6.pm
> @@ -129,6 +129,15 @@ sub check_pve_packages {
>  	} else {
>  	    log_fail("proxmox-ve package is too old, please upgrade to >= $min_pve_ver!");
>  	}
> +	print "\nChecking running kernel version..\n";
> +	my $kernel_ver = $proxmox_ve->{RunningKernel};
> +	if (!defined($kernel_ver)) {
> +	    log_fail("unable to determine running kernel version.");
> +	} elsif ($kernel_ver =~ /^5\./) {
> +	    log_pass("expected running kernel '$kernel_ver'.");
> +	} else {
> +	    log_warn("unexpected running kernel '$kernel_ver'.");
> +	}
>      }
>  }
>  
> 

applied, with followups to:
* add PVE 5 compat
* check also if the new kernel was installed, and hint that the node may just
  not yet have been rebooted.





More information about the pve-devel mailing list