为什么在构建内核时停止生成PGP密钥?

时间:2013-12-10 02:42:52

标签: centos kernel gnupg

当我构建CentOS6内核时,它会在以下步骤停止:

###
### Now generating a PGP key pair to be used for signing modules.
###
### If this takes a long time, you might wish to run rngd in the background to
### keep the supply of entropy topped up.  It needs to be run as root, and
### should use a hardware random number generator if one is available, eg:
###
###     rngd -r /dev/hwrandom
###
### If one isn't available, the pseudo-random number generator can be used:
###
###     rngd -r /dev/urandom
###
+ gpg --homedir . --batch --gen-key /home/build/rpmbuild/SOURCES/genkey
gpg: WARNING: unsafe permissions on homedir `.'
gpg: keyring `./secring.gpg' created
gpg: keyring `./pubring.gpg' created

即使等待几个小时,构建脚本也不会继续。我必须手动运行rngd吗?

我已经多次构建了内核,只有一次成功完成了这一步。

2 个答案:

答案 0 :(得分:2)

输出文本告诉您到底发生了什么:没有足够的熵来生成所需的GPG密钥。

您可以按照建议运行rngd,也可以尝试执行“sudo find /”之类的操作。

答案 1 :(得分:0)

我在RHEL 6.4上安装了相当旧的软件包rng-utils-2.0-5.el5.x86_64.rpm,在/ dev / urandm上挂了它并设法获取gpg密钥。