[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[updated PATCH] Ensure ppc64 ramdisk.image file is <= 32MB (#675685)



[Update to the original patch, moves the removal block to before the "#
clean up leftover cruft" block.]


Ensure ppc64 ramdisk.image file is <= 32MB (#675685)

Remove some kernel modules and firmware files so the ppc64
ramdisk.image.gz file is 32MB or less.  The core issue here is the TFTP
client code in on most (or all) ppc64 systems cannot transfer a file
larger than 32MB.

NOTE: This is not an ideal solution to a firmware bug.  ppc64 systems
from IBM are incapable of pulling over a file larger than 32MB via TFTP,
which prevents network booting on ppc64 when the install image grows
beyond that size.  These removals are a temporary workaround until IBM
can fix the firmware on affected systems.  The kernel modules and
firmware selected for removal is based on the assumption that most ppc64
users will not be using these devices during install time (or ever).  If
you do use devices that require these files during installation, we urge
you to seek another architecture or ask that you request a firmware fix
from IBM.

diff --git a/scripts/mk-images b/scripts/mk-images
index d05e9bc..ef78b8c 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -336,6 +336,15 @@ makemoduletree() {
 search updates built-in
 EOF

+    # Remove some modules and firmware on ppc64 so the ramdisk image
+    # is <= 32MB (BZ #675685)
+    if [ "$BUILDARCH" = "ppc64" ]; then
+        for subdir in firewire pcmcia sound wireless ; do
+            find -H $MMB_DIR/lib/modules -name $subdir | xargs rm -rf
+        done
+        rm -rf $MMB_DIR/lib/firmware/{matrox,r128,radeon,zd1211}
+    fi
+
     # clean up leftover cruft
     find -H $MMB_DIR/lib/modules -type d -exec rmdir -f {} \; 2>/dev/null
     $MODLIST --modinfo-file $MODINFO --ignore-missing --modinfo \

--
David Cantrell <dcantrell redhat com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]