The current version of lxc-checkconfig falls back to searching in
/lib/modules/$KVER/build/.config if it doesn't find the config. In some
systems, though, the config will be installed in /boot/config-$KVER, so
we'll look there as well.
Signed-off-by: Guido Trotter <ultrotter@quaqua.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
if [ ! -f $CONFIG ]; then
KVER="`uname -r`"
- CONFIG="/lib/modules/$KVER/build/.config"
+ HEADERS_CONFIG="/lib/modules/$KVER/build/.config"
+ BOOT_CONFIG="/boot/config-$KVER"
+ [ -f "${HEADERS_CONFIG}" ] && CONFIG=${HEADERS_CONFIG}
+ [ -f "${BOOT_CONFIG}" ] && CONFIG=${BOOT_CONFIG}
GREP=grep
if [ ! -f $CONFIG ]; then
echo