anaconda: fix initramfs regenerating code

This commit is contained in:
Joanna Rutkowska 2011-09-11 16:03:01 +02:00
parent 3339e61ee1
commit 6ad43624e6

View File

@ -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: