1
0
mirror of synced 2026-02-13 19:04:07 +00:00

2005-12-24 18:27:09 by steve

Added.
This commit is contained in:
steve
2005-12-24 18:27:09 +00:00
parent 3e050cbfe3
commit c1219d48f5

25
etc/hook.d/80-install-modules Executable file
View File

@@ -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