build 519 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. version_gt() {
  4. test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1";
  5. }
  6. if [ "$KERNEL_CHECK" != "0" ]; then
  7. echo "Host Kernel: $(uname -r)"
  8. echo "RancherOS Kernel: $KERNEL_VERSION"
  9. if ! version_gt $(uname -r) $KERNEL_VERSION; then
  10. echo "Your host kernel must be greater than RancherOS KERNEL_VERSION"
  11. exit 1
  12. fi
  13. fi
  14. echo -------------------------./build-target
  15. $(dirname $0)/build-target
  16. echo -------------------------./build-host
  17. $(dirname $0)/build-host