Bug 162687
Summary: | adds gzip support if kernel modules are compressed by gzip | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Warasin <peter> | ||||
Component: | mkinitrd | Assignee: | Peter Jones <pjones> | ||||
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3 | CC: | martin, mattdm | ||||
Target Milestone: | --- | Keywords: | FutureFeature | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-02-12 01:17:09 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Peter Warasin
2005-07-07 17:24:14 UTC
Created attachment 116484 [details]
patch which adds gzip support
I'd love to see this implemented. On my FC5 installation it saves 74 MB per flavour on the root disk and it even boots a little bit faster too (less than a second, though.) I did't know about Peter's patch so I'm posting mine too. (It only works if the extension is left as '.ko', not '.ko.gz') --- mkinitrd.orig 2006-04-24 11:25:55.000000000 +0200 +++ mkinitrd 2006-04-24 11:32:27.000000000 +0200 @@ -798,11 +798,14 @@ ln -s /sbin/nash $MNTIMAGE/sbin/modprobe for MODULE in $MODULES; do - if [ -x /usr/bin/strip ]; then - /usr/bin/strip -g $verbose $MODULE -o $MNTIMAGE/lib/$(basename $MODULE) + if [ -x /usr/bin/gzip ] && /usr/bin/gzip -t $MODULE 2> /dev/null ; then + /usr/bin/gzip $verbose -d -c $MODULE > $MNTIMAGE/lib/$(basename $MODULE) else cp $verbose -a $MODULE $MNTIMAGE/lib fi + if [ -x /usr/bin/strip ]; then + /usr/bin/strip -g $verbose $MNTIMAGE/lib/$(basename $MODULE) + fi done # mknod'ing the devices instead of copying them works both with and Fedora Core 3 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC5 updates or in the FC6 test release, reopen and change the version to match. Thank you! Fedora Core 3 is not maintained anymore. Setting status to "INSUFFICIENT_DATA". If you can reproduce this bug in the current Fedora release, please reopen this bug and assign it to the corresponding Fedora version. |