1
0
mirror of synced 2026-01-31 13:32:04 +00:00
Files
xen-tools.xen-tools/etc/hook.d/80-install-modules
steve f9752fd20c 2005-12-24 20:34:44 by steve
The hook scripts are now only passed a single argument on the command line - the name of the mount point.  The hostname is now accessible via the environment.
2005-12-24 20:34:44 +00:00

25 lines
549 B
Bash
Executable File

#!/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
#
# 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