anaconda: call dracut manually

Anaconda does use own version, not from installed system (so without needed
modules).
This commit is contained in:
Marek Marczykowski 2011-09-09 11:23:02 +02:00
parent 97d0f39f38
commit 1fe4aa8183

View File

@ -95,6 +95,9 @@ class InstallClass(BaseInstallClass):
subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath, subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,
'/bin/bash', '-c', 'rpm --import /etc/pki/rpm-gpg/*']) '/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'])
def getBackend(self): def getBackend(self):
if flags.livecdInstall: if flags.livecdInstall:
import livecd import livecd