summaryrefslogtreecommitdiffstats
path: root/debian/diff-latest-pack.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:26:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:26:18 +0000
commit5870552b6420b1c01a2a74c2f83fecddfdb991fe (patch)
tree4806d776869d92b2ae169b7b10fc5ae0a6376c81 /debian/diff-latest-pack.sh
parentAdding upstream version 3.20240312.1. (diff)
downloadintel-microcode-debian/3.20240312.1.tar.xz
intel-microcode-debian/3.20240312.1.zip
Adding debian version 3.20240312.1.debian/3.20240312.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/diff-latest-pack.sh')
-rwxr-xr-xdebian/diff-latest-pack.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/diff-latest-pack.sh b/debian/diff-latest-pack.sh
new file mode 100755
index 0000000..613aa95
--- /dev/null
+++ b/debian/diff-latest-pack.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Generate an unified diff of the list of microcodes included in the
+# latest two Intel-supplied Microcode packs (microcode-<date>.dat)
+#
+# Use this to locate updated/removed/added microcodes. Further manual
+# analysis is necessary to identify the deletion of recently-added
+# or recently-updated microcode, and the addition of previously-deleted
+# microcode (often with a version downgrade).
+#
+# Run this from the directory with the Intel microcode packs.
+
+export LC_COLLATE=C
+PATH=${PATH}:/sbin:/usr/sbin
+
+FILES=$(ls -1 microcode-*.dat | tail -n 2 | xargs)
+
+DFILES=
+for i in $FILES ; do
+ fn=$(basename $i)
+ iucode_tool -q -l $i | sed -e 's/^[^:]\+: //' | sort | grep sig > /tmp/$fn.list
+ DFILES="${DFILES} /tmp/$fn.list"
+done
+
+diff --unified=1 ${DFILES} | grep sig | sort -k 2