Let the plymouth dracut module back into the ppc64 upgrade.img
The 32MiB size limit does not apply to upgrade.img since it's installed to /boot by redhat-upgrade-tool instead of downloaded through TFTP. The warning in rebuild_initrds will still be triggered by an upgrade.img over the limit, but this doesn't halt the compose and it's probably not a bad thing to know about.
This commit is contained in:
parent
8a804d10e5
commit
25b4d539ac
@ -312,13 +312,16 @@ class Lorax(BaseLoraxClass):
|
|||||||
|
|
||||||
logger.info("rebuilding initramfs images")
|
logger.info("rebuilding initramfs images")
|
||||||
dracut_args = ["--xz", "--install", "/.buildstamp"]
|
dracut_args = ["--xz", "--install", "/.buildstamp"]
|
||||||
|
anaconda_args = dracut_args + ["--add", "anaconda pollcdrom"]
|
||||||
|
|
||||||
# ppc64 cannot boot an initrd > 32MiB so remove some drivers
|
# ppc64 cannot boot an initrd > 32MiB so remove some drivers
|
||||||
if self.arch.basearch in ("ppc64", "ppc64le"):
|
if self.arch.basearch in ("ppc64", "ppc64le"):
|
||||||
dracut_args.extend(["--omit-drivers", REMOVE_PPC64_DRIVERS])
|
dracut_args.extend(["--omit-drivers", REMOVE_PPC64_DRIVERS])
|
||||||
dracut_args.extend(["--omit", REMOVE_PPC64_MODULES])
|
|
||||||
|
|
||||||
anaconda_args = dracut_args + ["--add", "anaconda pollcdrom"]
|
# Only omit dracut modules from the initrd so that they're kept for
|
||||||
|
# upgrade.img
|
||||||
|
anaconda_args.extend(["--omit", REMOVE_PPC64_MODULES])
|
||||||
|
|
||||||
treebuilder.rebuild_initrds(add_args=anaconda_args)
|
treebuilder.rebuild_initrds(add_args=anaconda_args)
|
||||||
|
|
||||||
if doupgrade:
|
if doupgrade:
|
||||||
|
Loading…
Reference in New Issue
Block a user