From c1219d48f56db5240550d500bd7af6f4100fd87b Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 24 Dec 2005 18:27:09 +0000 Subject: [PATCH] 2005-12-24 18:27:09 by steve Added. --- etc/hook.d/80-install-modules | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 etc/hook.d/80-install-modules diff --git a/etc/hook.d/80-install-modules b/etc/hook.d/80-install-modules new file mode 100755 index 0000000..e21b7c9 --- /dev/null +++ b/etc/hook.d/80-install-modules @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Install modules from the host system into the new image, and +# ensure that 'module-init-tools' is setup. +# +# + + +# +# The virtual image is mounted here. +# +prefix=$1 +hostname=$2 + +# +# Copy the modules from the host to the new system - we should only +# really copy the *correct* modules, but we don't know what they are. +# +mkdir -p ${prefix}/lib/modules +cp -R /lib/modules/*/ ${prefix}/lib/modules + +# +# Now install the 'module-init-tools'. +# +DEBIAN_FRONTEND=noninteractive chroot $prefix /usr/bin/apt-get --yes --force-yes install module-init-tools