Commit b40fe7b3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

make fatal messages about incorrect module status in kernel

parent 2d2c5e44
...@@ -269,10 +269,10 @@ compile_module() ...@@ -269,10 +269,10 @@ compile_module()
echo "OK" echo "OK"
;; ;;
"y") "y")
echo "WARNING: the kernel is configured with cifs supporting, but not as a module!" fatal "ERROR: the kernel is configured with CIFS support, but not as a module!"
;; ;;
*) *)
echo "WARNING: the kernel is configured without cifs supporting!" fatal "ERROR: the kernel is configured without CIFS support!"
esac esac
else else
echo "WARNING: the .config file in kernel source directory does not exist!" echo "WARNING: the .config file in kernel source directory does not exist!"
...@@ -288,7 +288,7 @@ install_module() ...@@ -288,7 +288,7 @@ install_module()
if [ -z "$INSTALL_MOD_PATH" ]; then if [ -z "$INSTALL_MOD_PATH" ]; then
INSTALL_MOD_PATH=/lib/modules/$KERNELVERSION/kernel/fs/cifs INSTALL_MOD_PATH=/lib/modules/$KERNELVERSION/kernel/fs/cifs
fi fi
test -r "$BUILDDIR/$MODULEFILENAME" || { echo "can't locate built module $MODULEFILENAME" ; exit 1 ; } test -r "$BUILDDIR/$MODULEFILENAME" || fatal "can't locate built module $MODULEFILENAME"
strip --strip-debug --discard-all $BUILDDIR/$MODULEFILENAME strip --strip-debug --discard-all $BUILDDIR/$MODULEFILENAME
echo "Copying built module to $INSTALL_MOD_PATH" echo "Copying built module to $INSTALL_MOD_PATH"
......
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