| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# /etc/kernel/preinst.d script for intel-microcode version 3 |
| 4 |
# Copyright (C) 2014 Henrique de Moraes Holschuh <[email protected]> |
| 5 |
# Released under the GPL v2 or later license |
| 6 |
# |
| 7 |
# This script makes sure the cpuid module is loaded, before the |
| 8 |
# kernel image has a chance to replace it with a new one that |
| 9 |
# might not be compatible with the current kernel. |
| 10 |
# |
| 11 |
# We need the cpuid module for iucode_tool --scan-system, |
| 12 |
# which is used by the initramfs hook. |
| 13 |
# |
| 14 |
|
| 15 |
grep -q cpu/cpuid /proc/devices || modprobe -q cpuid || true |
| 16 |
|
| 17 |
: |