aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-28 16:08:00 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-28 16:08:00 +0100
commit9bef83dbce69c173760acf318b429808e1f21443 (patch)
tree07eee95b39aa9cc390307d9089e85064fb8ca1c5 /create_image.sh
parentUpdate XFCE config and fix cachedkernel modules (diff)
downloadgentoaster-9bef83dbce69c173760acf318b429808e1f21443.tar.gz
gentoaster-9bef83dbce69c173760acf318b429808e1f21443.tar.bz2
gentoaster-9bef83dbce69c173760acf318b429808e1f21443.zip
Changes to get X started under QEMU
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}