From d9caf6fa20846c10947bbe1f0e4d1b845bb6e87b Mon Sep 17 00:00:00 2001 From: "Benjamin S. Allen" Date: Sat, 8 Jun 2019 17:32:08 -0500 Subject: [PATCH] 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. --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index 166a2e41..fa589505 100755 --- a/scripts/build +++ b/scripts/build @@ -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