[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



On Sun 16 Oct 2022 at 17:24:05 (+0200), Mario Marietto wrote:
> Il giorno dom 16 ott 2022 alle ore 10:50 Thomas Schmitt ha scritto:
> > On Sat 15 Oct 2022 at 23:03:41 (+0200), 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
> >
> > > I should decompress it and I will have the file called "initrd",that's a
> > > cpio file. The images that I should edit are inside this archive / folders :
> > > 
> > > initrd/usr/share/graphics
> > > 
> > > and they are called : logo_debian.png and logo_debian_dark.png ;
> > > 
> > > at this point this is what I did to add two new image files inside the
> > > archive in the same position of the old ones :
> >
> > So i expect that you want to create a new copy of that file inside the
> > initrd.

No, that would be dishonest: they are no longer Debian logos. You
should give names to your edited files that indicate what they are:
/your/ images for /your/ derivative. Add them to the archive and
change the symlinks there. You should end up with something like:

drwxr-xr-x 2 root root     0 Mar 22  2022 usr/share/graphics
-rw-r--r-- 1 root root 14649 Feb 15  2021 usr/share/graphics/logo_debian.png
-rw-r--r-- 1 root root 14649 Feb 15  2021 usr/share/graphics/logo_debian_dark.png
-rw-r--r-- 1 root root 12345 Oct 15 23:59 usr/share/graphics/logo_marietto.png
-rw-r--r-- 1 root root 12345 Oct 15 23:59 usr/share/graphics/logo_marietto_dark.png
lrwxrwxrwx 1 root root    15 Feb 15  2021 usr/share/graphics/logo_installer.png -> logo_marietto.png
lrwxrwxrwx 1 root root    20 Feb 15  2021 usr/share/graphics/logo_installer_dark.png -> logo_marietto_dark.png

> > 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.
> 
> Thanks very much. It worked : https://ibb.co/GHHDQ3H ; I'm at a good point
> by creating this derivative debian distro.

Cheers,
David.


Reply to: