diff options
Diffstat (limited to 'examples/hooks/squashfs.sh')
-rwxr-xr-x | examples/hooks/squashfs.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/squashfs.sh b/examples/hooks/squashfs.sh index 5be16e6f1..f258f8837 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 |