diff --git a/anaconda/installclasses/qubes.py b/anaconda/installclasses/qubes.py index df5e6e4..689595a 100644 --- a/anaconda/installclasses/qubes.py +++ b/anaconda/installclasses/qubes.py @@ -95,8 +95,9 @@ class InstallClass(BaseInstallClass): subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, '/bin/bash', '-c', 'rpm --import /etc/pki/rpm-gpg/*']) - subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, - '/sbin/dracut', '--force', '/boot/initramfs-' + kernel[0] + '.img']) + for kernel in anaconda.backend.kernelVersionList(anaconda.rootPath): + subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, + '/sbin/dracut', '--force', '/boot/initramfs-' + kernel[0] + '.img']) def getBackend(self): if flags.livecdInstall: