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:
parent
0d7c04bd53
commit
8558b595b0
9
anaconda/data/post-scripts/50-qubes.ks
Normal file
9
anaconda/data/post-scripts/50-qubes.ks
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user