Added CPU microcode update hooks

This commit is contained in:
root 2022-01-08 05:09:44 -05:00
parent 7e72580486
commit 3a6cf07ba5
2 changed files with 20 additions and 0 deletions

10
amd-ucode_reload.hook Normal file
View File

@ -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'

10
intel-ucode_reload.hook Normal file
View File

@ -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'