From 3eda9af075c4fd5d4d9040d94959ab700aa63579 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Fri, 29 Jul 2011 12:29:11 +0200 Subject: [PATCH] Import default rpm keys ...so that qubes-receive-updates can call rpm -K --- anaconda/installclasses/qubes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anaconda/installclasses/qubes.py b/anaconda/installclasses/qubes.py index 18b021f..3f1693d 100644 --- a/anaconda/installclasses/qubes.py +++ b/anaconda/installclasses/qubes.py @@ -97,6 +97,11 @@ class InstallClass(BaseInstallClass): if not file in whitelisted: subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, '/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...) for kernel in anaconda.backend.kernelVersionList(anaconda.rootPath): subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,