diff --git a/SOURCES/microcode.service b/SOURCES/microcode.service index 7cf5bee..09f542d 100644 --- a/SOURCES/microcode.service +++ b/SOURCES/microcode.service @@ -7,7 +7,6 @@ ConditionPathExists=/sys/devices/system/cpu/microcode/reload [Service] Type=oneshot RemainAfterExit=no -ExecStart=/usr/bin/bash -c "grep -l GenuineIntel /proc/cpuinfo | xargs grep -l "model.*79" > /dev/null || echo 1 > /sys/devices/system/cpu/microcode/reload" - +ExecStart=/usr/bin/bash -c 'grep -l GenuineIntel /proc/cpuinfo | xargs grep -l -E "model[[:space:]]*: 79$" > /dev/null || echo 1 > /sys/devices/system/cpu/microcode/reload' [Install] WantedBy=basic.target diff --git a/SPECS/microcode_ctl.spec b/SPECS/microcode_ctl.spec index 9a561f6..e1cb7b8 100644 --- a/SPECS/microcode_ctl.spec +++ b/SPECS/microcode_ctl.spec @@ -3,7 +3,7 @@ Summary: Tool to transform and deploy CPU microcode update for x86. Name: microcode_ctl Version: 2.1 -Release: 16.1%{?dist} +Release: 16.3%{?dist} Epoch: 2 Group: System Environment/Base License: GPLv2+ and Redistributable, no modification permitted @@ -46,7 +46,7 @@ install -m 644 %{SOURCE2} %{buildroot}/usr/lib/dracut/dracut.conf.d %systemd_post microcode.service # "reload" file is not presented on a certain virtualized hw if [ -f /sys/devices/system/cpu/microcode/reload ] ; then - grep -l GenuineIntel /proc/cpuinfo | xargs grep -l "model.*79" > /dev/null || \ + grep -l GenuineIntel /proc/cpuinfo | xargs grep -l -E "model[[:space:]]*: 79$" > /dev/null || \ echo 1 > /sys/devices/system/cpu/microcode/reload fi @@ -71,6 +71,14 @@ rm -rf %{buildroot} %changelog +* Wed Jan 18 2017 Petr Oros - 2.1-16.3 +- Fix issue with hot microcode cpu reload. +- Resolves: #1412187 + +* Tue Jan 10 2017 Petr Oros - 2.1-16.2 +- Fix broken quoting in ExecStart line. +- Resolves: #1412187 + * Mon Dec 19 2016 Petr Oros - 2.1-16.1 - Fix issue with hot microcode cpu reload. - Move dracut call into posttrans phase.