Bump LXC package from 1.1.5 to 2.1.0. Version 2.x includes many improvements and optimizations. https://linuxcontainers.org/lxc/news/ Some tools like lxc-top are rewritten in C and are no longer broken and dependent on lua. Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
20 lines
517 B
Diff
20 lines
517 B
Diff
--- a/src/lxc/tools/lxc-checkconfig.in
|
|
+++ b/src/lxc/tools/lxc-checkconfig.in
|
|
@@ -3,6 +3,17 @@
|
|
# Allow environment variables to override config
|
|
: ${CONFIG:=/proc/config.gz}
|
|
: ${MODNAME:=configs}
|
|
+: ${ZGREP:=zgrep}
|
|
+: ${GUNZIP:=gunzip}
|
|
+
|
|
+if [ -z $(which $ZGREP) ] && ! [ -z $(which $GUNZIP) ] && [ -x $(which $GUNZIP) ] && [ -f $CONFIG ] && [ "$CONFIG" == "/proc/config.gz" ] ; then
|
|
+
|
|
+ CONFIG_NEW="/tmp/config-$(uname -r)"
|
|
+ $GUNZIP -c $CONFIG > $CONFIG_NEW
|
|
+ CONFIG=$CONFIG_NEW
|
|
+
|
|
+ GREP=grep
|
|
+fi
|
|
|
|
CAT="cat"
|
|
|