2

I have one interesting question. I have custom distribution of CentOS Linux 6.3. The installed system needs CPU support for AES-NI for all services to work properly.

Can I add a check for AES support during the installation? I'm using Anaconda, but am willing to consider other ways to do it as well.

Thanks in advance.

2

1 Answer 1

4

This would require a kickstart script to be used. Fortunately the kickstart script need only be trivial. You may use this alone (for an otherwise normal interactive installation) or as part of an existing kickstart script.

%pre --erroronfail
#!/bin/sh
grep -q aes /proc/cpuinfo || exit 1
%end

If the CPU doesn't show this feature, the script will error exit and the installation will stop. Note that while this feature works, it is officially undocumented and not supported by Red Hat. (Not that it matters if you use CentOS...)

1
  • Thanks! It's works, but I have new problem now. I tried to execute this command: grep -q aes /proc/cpuinfo || echo "Don't enable AES-NI!" && sleep 15 && exit 1. And system stop installation but don't write any messages to console. Feb 8, 2013 at 14:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .