From 6ad43624e648dcf758196dbc0a9df92be820fa9a Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sun, 11 Sep 2011 16:03:01 +0200 Subject: [PATCH] anaconda: fix initramfs regenerating code --- anaconda/installclasses/qubes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: