From 3a6cf07ba5de4e6cd8ebf3db4f887b67e8ae75f3 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 8 Jan 2022 05:09:44 -0500 Subject: [PATCH] Added CPU microcode update hooks --- amd-ucode_reload.hook | 10 ++++++++++ intel-ucode_reload.hook | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 amd-ucode_reload.hook create mode 100644 intel-ucode_reload.hook diff --git a/amd-ucode_reload.hook b/amd-ucode_reload.hook new file mode 100644 index 0000000..09205a2 --- /dev/null +++ b/amd-ucode_reload.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Type = Path +Target = usr/lib/firmware/amd-ucode/* + +[Action] +Description = Applying CPU microcode updates... +When = PostTransaction +Depends = sh +Exec = /bin/sh -c 'echo 1 > /sys/devices/system/cpu/microcode/reload' diff --git a/intel-ucode_reload.hook b/intel-ucode_reload.hook new file mode 100644 index 0000000..5bb4478 --- /dev/null +++ b/intel-ucode_reload.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Type = Path +Target = usr/lib/firmware/intel-ucode/* + +[Action] +Description = Applying CPU microcode updates... +When = PostTransaction +Depends = sh +Exec = /bin/sh -c 'echo 1 > /sys/devices/system/cpu/microcode/reload'