In the sub-script, which is externally invoked by this script,
there was a little bug like "cd /lib/modules/*storage/".
This has been working if there's only 1 directory under /lib/modules.
But after upgrading kernel 3.4.23 to 3.4.51, there could be 2 different
directories, because ANDBD package could be possibly depending on
the older version.
To avoid such situations, set the kernel modules directory just the
same as its kernel version.
export GENTOO_KERNEL_VERSION="###(ls /boot/vmlinu* | cut -d "-" -f2).$BUILD_NUMBER"
cp -v /boot/vmlinu* $TARGET_DIR/
cp -v /boot/config* $TARGET_DIR/
-cd /lib/modules/*storage/
+cd /lib/modules/###{KERNEL_VERSION}
/bin/tar -cJvf $TARGET_DIR/modules-###{KERNEL_VERSION}.tar.xz .
echo "Job : $JOB_NAME" > $TARGET_DIR/sources.txt
echo "Build-Nr.: $BUILD_NUMBER" >> $TARGET_DIR/sources.txt