From 97564f67ef206a58daaed0b788abc5b1e43456b6 Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 28 Jun 2015 13:49:24 +0200 Subject: [PATCH] [util] disable overlayfs when host-kernel is lower than 4.0 --- lib/util.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util.sh b/lib/util.sh index eb9011e..ee5f08a 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -378,6 +378,8 @@ init_buildiso(){ [[ -z ${iso_checksum} ]] && iso_checksum='md5' [[ -z ${use_overlayfs} ]] && use_overlayfs='false' + used_kernel=$(uname -r | cut -d . -f1) + [[ ${used_kernel} -lt "4" ]] && use_overlayfs='false' } load_config(){