anaconda: use kernel-install instead of grubby to regenerate initrd/grub.conf

Since we have own hook there, it properly handles Xen. This means we no
longer need post scripts in kickstart for that.

Conflicts:
	anaconda/pyanaconda/packaging/__init__.py
pull/1/head
Marek Marczykowski-Górecki 9 years ago committed by Jon Griffiths
parent 4a714a3ed8
commit 296d869179

@ -511,7 +511,7 @@ class Payload(object):
# prevent boot on some systems # prevent boot on some systems
def recreateInitrds(self): def recreateInitrds(self):
""" Recreate the initrds by calling new-kernel-pkg """ Recreate the initrds by calling kernel-install
This needs to be done after all configuration files have been This needs to be done after all configuration files have been
written, since dracut depends on some of them. written, since dracut depends on some of them.
@ -521,9 +521,8 @@ class Payload(object):
for kernel in self.kernelVersionList: for kernel in self.kernelVersionList:
log.info("recreating initrd for %s", kernel) log.info("recreating initrd for %s", kernel)
if not flags.imageInstall: if not flags.imageInstall:
iutil.execInSysroot("new-kernel-pkg", iutil.execInSysroot("kernel-install",
["--mkinitrd", "--dracut", ["add", kernel, "/boot/vmlinuz-%s" % kernel])
"--depmod", "--update", kernel])
else: else:
# hostonly is not sensible for disk image installations # hostonly is not sensible for disk image installations
# using /dev/disk/by-uuid/ is necessary due to disk image naming # using /dev/disk/by-uuid/ is necessary due to disk image naming

Loading…
Cancel
Save