summaryrefslogtreecommitdiff
path: root/examples/hooks/unionfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/unionfs.sh')
-rwxr-xr-xexamples/hooks/unionfs.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/unionfs.sh b/examples/hooks/unionfs.sh
index bbf210a7a..2cf47b30a 100755
--- a/examples/hooks/unionfs.sh
+++ b/examples/hooks/unionfs.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 unionfs
+
+for KERNEL in /boot/vmlinuz-*
+do
+ VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
+
+ module-assistant --non-inter --quiet auto-install unionfs -l ${VERSION}
+done
+
module-assistant clean unionfs