aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-28 02:52:53 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-28 05:05:21 +0100
commitb044891e43062274aee969118a52f05091edc80d (patch)
tree5982fe9c5ff282236f56f99cb6b09ee9b8452c87
parentFix config generation double quoting (diff)
downloadgentoaster-b044891e43062274aee969118a52f05091edc80d.tar.gz
gentoaster-b044891e43062274aee969118a52f05091edc80d.tar.bz2
gentoaster-b044891e43062274aee969118a52f05091edc80d.zip
Add depmod for cachedkernel
-rwxr-xr-xcreate_image.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/create_image.sh b/create_image.sh
index cc4e366..30084ba 100755
--- a/create_image.sh
+++ b/create_image.sh
@@ -207,8 +207,10 @@ echo "Step 17: Setting up kernel"
# If we got the flag, used a cached kernel to reduce build times for testing
if [[ ${FLAGS_cachedkernel} -eq ${FLAGS_TRUE} ]]; then
echo "Using cached kernel" &>> ${LOG_FILE}
- cp ${TOOL_RES_PATH}/bzImage boot/kernel || handle_error "Error copying cached kernel"
- cp -R ${TOOL_RES_PATH}/kernelmodules/* lib/modules/ || handle_error "Error copying cached kernel modules"
+ KERNEL=`ls -l lib/modules/ | cut -d" " -f9`
+ cp ${TOOL_RES_PATH}/kernel boot/kernel || handle_error "Error copying cached kernel"
+ cp -R ${TOOL_RES_PATH}/modules/* lib/modules/ || handle_error "Error copying cached kernel modules"
+ linux32 chroot . depmod -a ${KERNEL}
else
echo "Downloading/installing kernel sources" &>> ${LOG_FILE}
linux32 chroot . emerge gentoo-sources &>> ${LOG_FILE} || handle_error "Error emerging kernel sources"