~linaro-maintainers/live-build/linaro-live-build-3

« back to all changes in this revision

Viewing changes to examples/hooks/lenny_chroot_aufs-modules.sh

  • Committer: Daniel Baumann
  • Date: 2011-03-09 18:19:23 UTC
  • Revision ID: git-v1:c5c3f6133a0fb62ba9c2c3b839e6ea5774f9c76a
Adding debian version 3.0~a1-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
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
5
 
# directory.
6
 
#
7
 
# Note: You only want to use this hook if there is no prebuild aufs-modules-*
8
 
# package available for your kernel flavour.
9
 
 
10
 
apt-get install --yes build-essential
11
 
 
12
 
# Building kernel module
13
 
which module-assistant || apt-get install --yes module-assistant
14
 
module-assistant update
15
 
 
16
 
for KERNEL in /boot/vmlinuz-*
17
 
do
18
 
        VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
19
 
 
20
 
        module-assistant --non-inter --quiet auto-install aufs -l ${VERSION}
21
 
done
22
 
 
23
 
module-assistant clean aufs