From: Reto Gantenbein Date: Fri, 6 Jan 2017 06:03:04 +0000 (+0100) Subject: Fix version comparison X-Git-Tag: lxc-2.1.0~197^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b40d7287eff585ec8673293bd8db4b70f521412;p=thirdparty%2Flxc.git Fix version comparison Signed-off-by: Reto Gantenbein --- diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index 6beb2a0f3..c94940c12 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -540,7 +540,7 @@ download_fedora() CHROOT_CMD= INSTALL_ROOT=${setup_rootfs} - if [ ! "${is_fedora}" ] || [ "${fedora_host_ver}" <= "${FEDORA_VERSION_MINIMAL}" ] + if [ ! "${is_fedora}" ] || [ "${fedora_host_ver}" -lt "${FEDORA_VERSION_MINIMAL}" ] then # if this is not a supported Fedora host, use minimal bootstrap chroot echo "Non-Fedora host detected. Checking for bootstrap environment ... "