diff options
Diffstat (limited to 'examples/hooks/aufs.sh')
-rwxr-xr-x | examples/hooks/aufs.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/hooks/aufs.sh b/examples/hooks/aufs.sh index ca637af1a..f0b02c68a 100755 --- a/examples/hooks/aufs.sh +++ b/examples/hooks/aufs.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 aufs + +for KERNEL in /boot/vmlinuz-* +do + VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')" + + module-assistant --non-inter --quiet auto-install aufs -l ${VERSION} +done + module-assistant clean aufs |