diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index e62c249be..ebf3fa439 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -26,7 +26,9 @@ $markdown = "" $OSName = Get-OSName $markdown += New-MDHeader "$OSName" -Level 1 +$kernelVersion = Get-KernelVersion $markdown += New-MDList -Style Unordered -Lines @( + "$kernelVersion" "Image Version: $env:IMAGE_VERSION" ) diff --git a/images/linux/scripts/helpers/Common.Helpers.psm1 b/images/linux/scripts/helpers/Common.Helpers.psm1 index bcb9a250d..04a79c46c 100644 --- a/images/linux/scripts/helpers/Common.Helpers.psm1 +++ b/images/linux/scripts/helpers/Common.Helpers.psm1 @@ -17,6 +17,11 @@ function Get-OSName { lsb_release -ds } +function Get-KernelVersion { + $kernelVersion = uname -r + return "Linux kernel version: $kernelVersion" +} + function Test-IsUbuntu16 { return (lsb_release -rs) -eq "16.04" }