summaryrefslogtreecommitdiffstats
path: root/server/build_core
diff options
context:
space:
mode:
authorMichael Neves2013-01-22 15:16:46 +0100
committerMichael Neves2013-01-22 15:16:46 +0100
commitd794e38d9fb0c906ee0c81fbbea0bafc15b4d757 (patch)
tree32a3b11fb74c0627c3012f10f47e90dc13d90533 /server/build_core
parentremove noclear option for older agetty versions (diff)
downloadtm-scripts-d794e38d9fb0c906ee0c81fbbea0bafc15b4d757.tar.gz
tm-scripts-d794e38d9fb0c906ee0c81fbbea0bafc15b4d757.tar.xz
tm-scripts-d794e38d9fb0c906ee0c81fbbea0bafc15b4d757.zip
build core also checks for kernel modules and copies them if missing
Diffstat (limited to 'server/build_core')
-rwxr-xr-xserver/build_core9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/build_core b/server/build_core
index bd863e4f..c9aa7add 100755
--- a/server/build_core
+++ b/server/build_core
@@ -44,6 +44,15 @@ initial_checks() {
echo "mksquashfs not found, please install squashfs-tools first."
exit 1
fi
+ #check for kernel modules, if not present copy from system
+ if [ ! -d ${STAGE32_DIR}/lib/modules ];
+ then
+ echo "Couldn't find kernel modules in stage3.2."
+ echo "Copying modules for kernel $(uname -r)..."
+ mkdir -p ${STAGE32_DIR}/lib/modules
+ cp -r /lib/modules/$(uname -r) ${STAGE32_DIR}/lib/modules/
+ fi
+
}
generate_initramfs() {