[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



Don't care about :

rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64/usr/share/plymouth/debian-logo*.png
rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64/usr/share/plymouth/debian-logo*.png
rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64/usr/share/plymouth/debian-logo*.png

I didn't issue those commands. I've copied and pasted them by mistake.

Il giorno gio 27 ott 2022 alle ore 14:22 Mario Marietto <marietto2008@gmail.com> ha scritto:
I tried to follow your directions,using cp usr/share/plymouth/debian-logo.png instead of cp /usr/share/plymouth/debian-logo.png. I hope that this is what you intend. So,below there are the commands that I have issued :

cd /home/ziomario/Scrivania/PassT-Cubic/kernels/

gunzip -k initrd.img-5.10.0-18-amd64.gz
gunzip -k initrd.img-5.10.0-19-amd64.gz
gunzip -k initrd.img-5.19.0-15.2-liquorix-amd64.gz

mkdir /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64
mkdir /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64
mkdir /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64

cpio -idv < initrd.img-5.10.0-18-amd64 -D /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64
cpio -idv < initrd.img-5.10.0-19-amd64 -D /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64
cpio -idv < initrd.img-5.19.0-15.2-liquorix-amd64 -D /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64

rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64/usr/share/plymouth/debian-logo*.png
rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64/usr/share/plymouth/debian-logo*.png
rm /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64/usr/share/plymouth/debian-logo*.png

cp usr/share/plymouth/debian-logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64/usr/share/plymouth/

cp usr/share/plymouth/themes/homeworld/debian.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64/usr/share/plymouth/themes/homeworld

cp usr/share/plymouth/themes/homeworld/logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64/usr/share/plymouth/themes/homeworld

cp usr/share/plymouth/debian-logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64/usr/share/plymouth/

cp usr/share/plymouth/themes/homeworld/debian.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64/usr/share/plymouth/themes/homeworld

cp usr/share/plymouth/themes/homeworld/logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64/usr/share/plymouth/themes/homeworld

cp usr/share/plymouth/debian-logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64/usr/share/plymouth/

cp usr/share/plymouth/themes/homeworld/debian.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64/usr/share/plymouth/themes/homeworld

cp usr/share/plymouth/themes/homeworld/logo.png /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64/usr/share/plymouth/themes/homeworld

mv initrd.img-5.10.0-18-amd64.gz initrd.img-5.10.0-18-amd64.gz-old
mv initrd.img-5.10.0-19-amd64.gz initrd.img-5.10.0-19-amd64.gz-old
mv initrd.img-5.19.0-15.2-liquorix-amd64 initrd.img-5.19.0-15.2-liquorix-amd64-old

cd /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64
cd /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-19-amd64
cd /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.19.0-15.2-liquorix-amd64

find . -print -depth | cpio -o > ../../initrd.img-5.10.0-18-amd64

find: warning: you have specified the global option -depth after the argument -print, but global options are not positional, i.e., -depth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
893621 blocks

find . -print -depth | cpio -o > ../../initrd.img-5.10.0-19-amd64

find: warning: you have specified the global option -depth after the argument -print, but global options are not positional, i.e., -depth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
893621 blocks

find . -print -depth | cpio -o > ../../initrd.img-5.19.0-15.2-liquorix-amd64

find: warning: you have specified the global option -depth after the argument -print, but global options are not positional, i.e., -depth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
893621 blocks

cd ../..

gzip initrd.img-5.10.0-18-amd64
gzip initrd.img-5.10.0-19-amd64
gzip initrd.img-5.19.0-15.2-liquorix-amd64

no. Unfortunately the produced kernel files are not able to boot. In Fact the size is bigger than the original ones. This is the error reported :

https://ibb.co/rm5WRSz

I don't know why. Inside the kernel files It seems that everything is ok. I have placed the wrong files in my google drive. Maybe you want to test them on your side ? Thanks for your very very useful support. I can tell for sure that the quality and your patience are the best that I found on the internet.

https://drive.google.com/drive/folders/16z5INJTSB3YcpzE980q9eqRIRVG02-JH?usp=sharing

Il giorno gio 27 ott 2022 alle ore 06:59 David Wright <deblis@lionunicorn.co.uk> ha scritto:
On Thu 27 Oct 2022 at 01:48:44 (+0200), Mario Marietto wrote:
> Il giorno gio 27 ott 2022 alle ore 01:01 David Wright ha scritto:
> > On Thu 27 Oct 2022 at 00:21:50 (+0200), Mario Marietto wrote:
> > > Please,check the images below. The image 1 and 2 come from the kernel
> > file
> > > unpacked with the cpio command (cpio -idv < initrd.img-5.10.0-18-amd64 -D
> > >
> > /home/ziomario/Scrivania/PassT-Cubic/kernels/unzipped/initrd.img-5.10.0-18-amd64),while
> > > on the picture n. 3 You can see all the pictures that are inside the
> > kernel
> > > file when I have opened it with engrampa. I don't know where the truth
> > is.
> > > I see only contradictory information. Something is lying : who is ? cpio
> > or
> > > engrampa ?
> > >
> > > 1) https://ibb.co/0mCFCW7
> > > 2) https://ibb.co/pjGsTY5
> > > 3) https://ibb.co/k3TMFsk
> >
> > Have you read https://github.com/mate-desktop/engrampa/issues/191
> >
> > You may be working outside the limits of defined behaviour
> > when you create .cpio files with duplicate entries. That's
> > doesn't make much sense when you intend to distribute the
> > product to other people/systems.
> >
> I don't want to bother you,but did you read my first message ? You replied
> only to the second one and I don't know if you have read or understood the
> first one. I ask because it seems there may be some other problems
> explained there. Do you want to give it a look ? Thank you very much.

Well, I've taken another look at your images. I have to guess
precisely what they show, as I've never used engrampa. But there's
one thing about #3 that I don't like the look of: The window
labelled "Posizione:" shows "/usr/share/plymouth/themes/homeworld",
but I assume that it refers to what's inside the cpio archive called
"initrd.img-5.10.0-18-amd64" highlighted in the window above.

If that's a conventional initrd, then I would expect "Posizione:"
to show "usr/share/plymouth/themes/homeworld", because I don't recall
ever seeing an absolute filename in an initrd. This could lead to your
writing to or reading from unexpected places in your filesystem,
depending on whoami. (Running these commands as root might perhaps be
one reason why you're writing /home/ziomario/… … … almost throughout).

That could be a red herring, but unlike mc, which may have to prefix
a filename with "/" to show it /is/ a directory, engrampa doesn't
need that indication here, because it puts a "/" after homeworld,
which shows the same thing.

Anyway, contrast:

  $ find /etc/resolv.conf /etc/networks -print | cpio -ov > /tmp/absolute.cpio
  /etc/resolv.conf
  /etc/networks
  1 block
  $ find /etc/resolv.conf /etc/networks -print | cpio -ov --no-absolute-filenames > /tmp/relative.cpio
  cpio: Removing leading `/' from member names
  /etc/resolv.conf
  /etc/networks
  1 block
  $

which list as:

  $ cpio -t < /tmp/absolute.cpio
  /etc/resolv.conf
  /etc/networks
  1 block
  $ cpio -t < /tmp/relative.cpio
  etc/resolv.conf
  etc/networks
  1 block
  $

You should be using files that look like relative.cpio.

Cheers,
David.



--
Mario.


--
Mario.

Reply to: