Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316259 Details for
Bug 417375
media-gfx/splashutils: initramfs corruption when compression is not gzip (new genkernel feature)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add lzma/xz compression support
1.5.4.4-xz.patch (text/plain), 1.88 KB, created by
AlexOmskiy
on 2012-06-26 00:15:26 UTC
(
hide
)
Description:
Add lzma/xz compression support
Filename:
MIME Type:
Creator:
AlexOmskiy
Created:
2012-06-26 00:15:26 UTC
Size:
1.88 KB
patch
obsolete
>--- splashutils-1.5.4.4.orig/scripts/splash_geninitramfs.in 2011-06-13 04:43:39.000000000 +0700 >+++ splashutils-1.5.4.4/scripts/splash_geninitramfs.in 2012-03-09 12:21:34.370113400 +0700 >@@ -36,6 +36,8 @@ > comma-separated list of the resolutions for which the images > are to be copied > -v, --verbose verbose output >+ --lzma use 'lzma' compressor (gzip default) >+ --xz use 'xz' compressor (gzip default) > --no8bpp ignore 8bpp images (can save a lot of space) > EOTB > >@@ -69,9 +71,10 @@ > verbose=0 > index=0 > no8bpp=0 >+compressor="gzip" > > args="$@" >-temp=`getopt -l no8bpp,all,generate:,append:,copy:,overlay:,help,verbose,res: a:g:c:r:o:hv "$@"` >+temp=`getopt -l lzma,xz,no8bpp,all,generate:,append:,copy:,overlay:,help,verbose,res: a:g:c:r:o:hv "$@"` > > if [ $? != 0 ]; then > usage; exit 2 >@@ -89,6 +92,8 @@ > -v|--verbose) verbose=$(($verbose + 1)); shift;; > -o|--overlay) overlay="$2"; shift; shift;; > --no8bpp) no8bpp=1; shift;; >+ --lzma) compressor="lzma"; shift;; >+ --xz) compressor="xz"; shift;; > --) shift; break;; > --all) > shift; >@@ -144,7 +149,7 @@ > if [ "$mode" == "a" ]; then > printv "o Unpacking $img.." > cp "$img" "${imgdir}" >- (cd "${imgdir}"; (gunzip -c "$(basename $img)" 2>/dev/null || cat "$(basename $img)") | cpio -idm --no-absolute-filenames --quiet -H newc) >+ (cd "${imgdir}"; ("${compressor}" -dc "$(basename $img)" 2>/dev/null || cat "$(basename $img)") | cpio -idm --no-absolute-filenames --quiet -H newc) > rm -f "${imgdir}/$(basename $img)" > fi > >@@ -234,8 +239,8 @@ > > printv "o Creating initramfs image.." > if [ "$mode" == "g" ] || [ "$mode" == "a" ]; then >- (cd "${imgdir}" ; find . | cpio --quiet -o -H newc | gzip -9 >../img.cpio.gz) >- mv "${workdir}/img.cpio.gz" "${img}" >+ (cd "${imgdir}" ; find . | cpio --quiet -o -H newc | "${compressor}" -9 >../img.temp) >+ mv "${workdir}/img.temp" "${img}" > fi > > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417375
: 316259 |
316271
|
351190