mirror of
https://github.com/rancher/os.git
synced 2025-08-19 23:36:54 +00:00
Allow build on a host with matching kernel version
Change allows for a build on a host with a matching kernel version instead of forcing that the version must always be greater.
This commit is contained in:
parent
b5bbcdc89e
commit
d9caf6fa20
@ -10,7 +10,7 @@ if [ "$KERNEL_CHECK" != "0" ]; then
|
||||
echo "Host Kernel: $(uname -r)"
|
||||
echo "RancherOS Kernel: $KERNEL_VERSION"
|
||||
|
||||
if ! version_gt $(uname -r) $KERNEL_VERSION; then
|
||||
if [ $(uname -r) != $KERNEL_VERSION ] && ! version_gt $(uname -r) $KERNEL_VERSION; then
|
||||
echo "Your host kernel must be greater than RancherOS KERNEL_VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user