Import default rpm keys

...so that qubes-receive-updates can call rpm -K
This commit is contained in:
Rafal Wojtczuk 2011-07-29 12:29:11 +02:00
parent b93f736164
commit 3eda9af075

View File

@ -97,6 +97,11 @@ class InstallClass(BaseInstallClass):
if not file in whitelisted: if not file in whitelisted:
subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,
'/sbin/chkconfig', '--level', '5', file, 'off']) '/sbin/chkconfig', '--level', '5', file, 'off'])
# Import rpm keys, so that qubes-receive-updates can call rpm -K
subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,
'/bin/bash', '-c', 'rpm --import /etc/pki/rpm-gpg/*'])
# Fix default initramfs (anaconda generates own one...) # Fix default initramfs (anaconda generates own one...)
for kernel in anaconda.backend.kernelVersionList(anaconda.rootPath): for kernel in anaconda.backend.kernelVersionList(anaconda.rootPath):
subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,