--- a/pkvlm-create Tue Apr 24 19:23:59 2012 +0300
+++ b/pkvlm-create Mon Aug 13 10:36:55 2012 +0300
@@ -273,7 +273,7 @@
### Paths
## Installation image
# Original Debian Installer image (iso)
-BASE_INSTALLER_VERSION="6.0.4"
+BASE_INSTALLER_VERSION="6.0.5"
BASE_INSTALLER_NAME="debian-${BASE_INSTALLER_VERSION}-amd64"
BASE_INSTALLER_ISO="iso/${BASE_INSTALLER_NAME}-netinst.iso"
BASE_INSTALLER_TREE="images/$BASE_INSTALLER_NAME"
@@ -531,6 +531,18 @@
BOOT_KERNEL_ARGS_DEFAULT="quiet"
BOOT_KERNEL_ARGS="${BOOT_KERNEL_CONSOLE}"
+## Hotplug modules
+log_info "Configure acpi/pci hotplug"
+
+modules=/etc/modules
+module='acpihp'
+
+preseed_script '20-hotplug-modules' <<END
+ in-target grep -q $module $modules || echo "
+# KVM virtio hotplug
+$module" >> $modules
+END
+
### Postprocess preseed data
## Preseed / config files