We cannot rely on dmesg

This commit is contained in:
Benoît S. 2018-06-27 17:30:18 +02:00
parent 57bd4312ce
commit ee60e28a5a

View file

@ -718,9 +718,6 @@ if [ -e /etc/debian_version ]; then
# We check if the running kernel has kaiser loaded
if is_debianversion stretch; then
grep '^flags' /proc/cpuinfo | grep -qEw '(kaiser|pti)' || echo 'IS_MELTDOWN FAILED!'
elif is_debianversion jessie; then
dmesg | grep -Eq 'Kernel/User page tables isolation: enabled|Kernel page table isolation enabled' \
|| echo 'IS_MELTDOWN FAILED!'
fi
fi
fi