4a0bea
[Unit]
4a0bea
Description=Load CPU microcode update
4a0bea
After=basic.target
4a0bea
ConditionVirtualization=false
4a0bea
ConditionPathExists=/sys/devices/system/cpu/microcode/reload
4a0bea
4a0bea
[Service]
4a0bea
Type=oneshot
4a0bea
RemainAfterExit=no
4a0bea
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'
4a0bea
[Install]
4a0bea
WantedBy=basic.target