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

Re: Some of the parameters used in my genisoimage command don't produce a bootable ISO image



Hi,

Mario Marietto wrote:
> echo logo_debian_dark.png | cpio -H newc -o -A -F initrd/usr/share/graphics
> cpio: can't open initrd/usr/share/graphics: Is not a directory

cpio option -F expects the path to the archive as argument. I.e. the path
to the uncompressed initrd.


> The images that I should edit are inside this archive / folders :
> initrd/usr/share/graphics

Are you sure about the first path component "initrd/" ?
I see the path without it:

  $ gunzip < /mnt/iso/d-i/gtk/initrd.gz | cpio -t | fgrep logo_debian_dark.png
  264529 blocks
  usr/share/graphics/logo_debian_dark.png

So i expect that you want to create a new copy of that file inside the
initrd. If so, then you have to write its desired path into stdin of cpio

  echo usr/share/graphics/logo_debian_dark.png | cpio -H newc -o -A -F \
    /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/d-i/gtk/initrd

Since cpio seems to offer no opportunities for grafting files to arbitrary
paths, you have to cd to some playground directory, create the directories
of the path usr/share/graphics/, and put your .png into the "graphics"
directory. Then run above echo|cpio pipe.


Have a nice day :)

Thomas


Reply to: