3
# This is a hook for live-build(7) to install aufs drivers
4
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
7
# Note: You only want to use this hook if there is no prebuild aufs-modules-*
8
# package available for your kernel flavour.
10
apt-get install --yes build-essential
12
# Building kernel module
13
which module-assistant || apt-get install --yes module-assistant
14
module-assistant update
16
for KERNEL in /boot/vmlinuz-*
18
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
20
module-assistant --non-inter --quiet auto-install aufs -l ${VERSION}
23
module-assistant clean aufs