Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202009 - media-gfx/splashutils-1.5.2.1 - splash_geninitramfs -a fails on existing cpio archive created by gen_init_cpio
Summary: media-gfx/splashutils-1.5.2.1 - splash_geninitramfs -a fails on existing cpio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard: fixed
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-12 03:51 UTC by Myk Taylor
Modified: 2007-12-16 19:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
One-line patch to implement the proposed functionality (splash_geninitramfs.diff,496 bytes, patch)
2007-12-12 03:53 UTC, Myk Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myk Taylor 2007-12-12 03:51:26 UTC
splash_geninitramfs -a fails to append to a cpio archive previously created to support uvesafb for two reasons:
1) splash_geninitramfs assumes that if it is appending to an archive, then the archive has been gzipped
2) splash_geninitramfs extracts the existing archive without specifying the --no-absolute-filenames option to cpio, allowing cpio to extract the archive outside of the staging subdirectory

Reproducible: Always

Steps to Reproduce:
1. /lib/modules/2.6.23-gentoo-r3/build/usr/gen_init_cpio /usr/share/v86d/initramfs >/boot/fbsplash-emergence
2. splash_geninitramfs -a /boot/fbsplash-emergence -r 1024x768 -v emergence
3.

Actual Results:  
---- BEGIN OUTPUT ----
o Unpacking /boot/fbsplash-emergence..

gzip: fbsplash-emergence: not in gzip format
cpio: premature end of file
o Creating directory structure..
o Copying /sbin/fbcondecor_helper..
o Copying themes..
  - emergence
o Creating initramfs image..
---- END OUTPUT ----

The /boot/fbsplash-emergence is overwritten with the created archive, containing splash data, but without any information from the original archive.

Expected Results:  
/boot/fbsplash-emergence shoudl contain the original data in addition to the splash data.  It should handle raw cpio files in addition to gzipped cpio files and extract them properly relative to the staging directory before adding the splash data files.

relevant package versions:
  sys-kernel/gentoo-sources-2.6.23-r3
  media-gfx/splashutils-1.5.2.1
  sys-apps/v86d-0.1.3

The original cpio archive was created as per the instructions in /usr/share/doc/v86d-0.1.3/README.bz2
Comment 1 Myk Taylor 2007-12-12 03:53:34 UTC
Created attachment 138298 [details, diff]
One-line patch to implement the proposed functionality

Handles gzipped or regular cpio archives for appending
Ensures the cpio archive is extracted relative to the staging dir
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2007-12-16 19:21:15 UTC
Fixed in 1.5.3.2.  Thanks for the patch.