aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'create_image.sh')
-rwxr-xr-xcreate_image.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/create_image.sh b/create_image.sh
index 0ef56d0..9adbc8e 100755
--- a/create_image.sh
+++ b/create_image.sh
@@ -210,7 +210,8 @@ if [[ ${FLAGS_cachedkernel} -eq ${FLAGS_TRUE} ]]; then
cp ${TOOL_RES_PATH}/kernel boot/kernel || handle_error "Error copying cached kernel"
cp -R ${TOOL_RES_PATH}/modules.tar.gz lib/modules/ || handle_error "Error copying cached kernel modules"
tar xvf lib/modules/modules.tar.gz -C lib/modules/ || handle_error "Error extracting cached kernel modules"
- KERNEL=`ls -l lib/modules/ | cut -d" " -f9 | tr "\n" " "`
+ ROOTDIR=`pwd`
+ KERNEL=`ls -l ${ROOTDIR}/lib/modules/ | cut -d" " -f9 | tr "\n" " "`
linux32 chroot . depmod -a ${KERNEL}
else
echo "Downloading/installing kernel sources" &>> ${LOG_FILE}