summaryrefslogtreecommitdiff
path: root/examples/hooks/squashfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/squashfs.sh')
-rwxr-xr-xexamples/hooks/squashfs.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/squashfs.sh b/examples/hooks/squashfs.sh
index 5be16e6..f258f88 100755
--- a/examples/hooks/squashfs.sh
+++ b/examples/hooks/squashfs.sh
@@ -9,5 +9,12 @@
# Building kernel module
which module-assistant || apt-get install --yes module-assistant
module-assistant update
-module-assistant --non-inter --quiet auto-install squashfs
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install squashfs -l ${VERSION}
+done
+
module-assistant clean squashfs