Commit 84a15642 by Guido Trotter Committed by Daniel Lezcano

lxc-checkconfig: look in one more place

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: 's avatarGuido Trotter <ultrotter@quaqua.net> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent a25ba7aa
......@@ -25,7 +25,10 @@ is_enabled() {
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment