As pointed out in 1189841 mokutil should be called only on EFI systems. So the 'mokutil -v' check should be replaced with 'mokutil --sb-state' check.