Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316271 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]
1.5.4.4-all-kernel-compressors.patch
1.5.4.4-all-kernel-compressors.patch (text/plain), 2.08 KB, created by
AlexOmskiy
on 2012-06-26 03:18:15 UTC
(
hide
)
Description:
1.5.4.4-all-kernel-compressors.patch
Filename:
MIME Type:
Creator:
AlexOmskiy
Created:
2012-06-26 03:18:15 UTC
Size:
2.08 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-06-26 09:47:17.207021463 +0700 >@@ -36,6 +36,10 @@ > comma-separated list of the resolutions for which the images > are to be copied > -v, --verbose verbose output >+ --bzip2 use 'bzip2' compressor (gzip default) >+ --lzma use 'lzma' compressor (gzip default) >+ --xz use 'xz' compressor (gzip default) >+ --lzo use 'lzop' compressor (gzip default) > --no8bpp ignore 8bpp images (can save a lot of space) > EOTB > >@@ -69,9 +73,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 bzip2,lzma,xz,lzo,no8bpp,all,generate:,append:,copy:,overlay:,help,verbose,res: a:g:c:r:o:hv "$@"` > > if [ $? != 0 ]; then > usage; exit 2 >@@ -89,6 +94,10 @@ > -v|--verbose) verbose=$(($verbose + 1)); shift;; > -o|--overlay) overlay="$2"; shift; shift;; > --no8bpp) no8bpp=1; shift;; >+ --bzip2) compressor="bzip2"; shift;; >+ --lzma) compressor="lzma"; shift;; >+ --xz) compressor="xz"; shift;; >+ --lzo) compressor="lzop"; shift;; > --) shift; break;; > --all) > shift; >@@ -144,7 +153,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 +243,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