anaconda: fix post-install scripts, regenerate initramfs

InstallClass.postAction isn't called from anywhere, move things to
anaconda post-scripts. Add regenerate of initramfs image to include
qubes-pciback module.
This commit is contained in:
Marek Marczykowski 2013-02-25 06:22:25 +01:00
parent 0d7c04bd53
commit 8558b595b0
3 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1,9 @@
%post
rpm --import /etc/pki/rpm-gpg/*
for initrd in /boot/initramfs-*.img; do
version=`basename $initrd .img|cut -f 2- -d-`
dracut --force $initrd $version
done
%end

View File

@ -18,5 +18,5 @@
# Author: Chris Lumens <clumens@redhat.com>
postscriptsdir = $(datadir)/$(PACKAGE_NAME)/post-scripts
dist_postscripts_DATA = 80-setfilecons.ks 90-copy-screenshots.ks 99-copy-logs.ks
dist_postscripts_DATA = 50-qubes.ks 80-setfilecons.ks 90-copy-screenshots.ks 99-copy-logs.ks
MAINTAINERCLEAFILES = Makefile.in

View File

@ -64,11 +64,6 @@ class InstallClass(BaseInstallClass):
if autoreq.mountpoint == "/home":
storage.autoPartitionRequests.remove(autoreq)
def postAction(self, anaconda):
# 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/*'])
def productMatches(self, oldprod):
if oldprod is None:
return False