aboutsummarylogtreecommitdiffstats
path: root/pre-hook
diff options
context:
space:
mode:
Diffstat (limited to 'pre-hook')
-rwxr-xr-xpre-hook2
1 files changed, 2 insertions, 0 deletions
diff --git a/pre-hook b/pre-hook
index 8c9a43300ef2..dbde00d5d7c9 100755
--- a/pre-hook
+++ b/pre-hook
@@ -18,5 +18,7 @@ if [ -e modules/"$running_kernel" ] ; then
exit 0
fi
+mkdir -p modules
+
# copy with hardlinks, much faster
cp --archive --link /usr/lib/modules/"$running_kernel" modules/