The technique to unpack the files from the cpio archive with :

cpio -idv < tree.cpio

and then packing them up with :

find . -print -depth | cpio -ov > tree.cpio

didn't work for some unknown reason. But the technique below worked :

mkdir -p
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/cpio

cp 
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/initrd.img-5.10.0-18-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/cpio

cp 
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/initrd.img-5.10.0-19-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/cpio

cp 
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/initrd.img-5.19.0-15.2-liquorix-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/cpio

cd /root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/cpio

gunzip initrd.img-5.10.0-18-amd64.gz

gunzip initrd.img-5.10.0-19-amd64.gz

gunzip initrd.img-5.19.0-15.2-liquorix-amd64.gz

echo /usr/share/plymouth/themes/homeworld/debian.png | cpio -H newc -o -A
-F initrd.img-5.10.0-18-amd64

echo /usr/share/plymouth/themes/homeworld/debian.png | cpio -H newc -o -A
-F initrd.img-5.10.0-19-amd64

echo /usr/share/plymouth/themes/homeworld/debian.png | cpio -H newc -o -A
-F initrd.img-5.19.0-15.2-liquorix-amd64

echo /usr/share/plymouth/themes/homeworld/logo.png | cpio -H newc -o -A -F
initrd.img-5.10.0-19-amd64

echo /usr/share/plymouth/themes/homeworld/logo.png | cpio -H newc -o -A -F
initrd.img-5.19.0-15.2-liquorix-amd64

echo /usr/share/plymouth/themes/homeworld/logo.png | cpio -H newc -o -A -F
initrd.img-5.10.0-18-amd64

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

cp initrd.img-5.10.0-18-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/

cp initrd.img-5.10.0-19-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/

cp initrd.img-5.19.0-15.2-liquorix-amd64.gz
/root/Scrivania/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/

Il giorno sab 22 ott 2022 alle ore 22:45 Mario Marietto <
marietto2...@gmail.com> ha scritto:

> This is what I did. I gone into this folder :
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/ and I
> have renamed the file "initrd.gz" into "initrd_.gz" and I've burnt a new
> ISO image. I have soon realized that that file has been regenerated. The
> initrd_.gz file disappeared and a new initrd.gz file appeared when,in
> CUBIC,I have chosen which kernel bootstrap,as you can see here :
> https://ibb.co/Xy0nKtL ; So. I suppose that the file that I should alter
> is called "initrd.img-5.10.0-19-amd64" because I have chosen that kernel
> version on the Cubic tab. And this is what I tried to do,but it didn't
> work. This is the commands that I have issued :
>
> cd /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot
>
> gunzip initrd.img-5.10.0-19-amd64.gz : has been produced a cpio file
> called :  initrd.img-5.10.0-19-amd64
>
> mv initrd.img-5.10.0-19-amd64 initrd.img-5.10.0-19-amd64_
>
> cpio -idv < initrd.img-5.10.0-19-amd64_ : it has been unpacked and then
> I've copied the files inside a folder called initrd.img-5.10.0-19-amd64
>
> cd
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/initrd.img-5.10.0-19-amd64/
>
>
> cp /usr/share/plymouth/debian-logo.png
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/initrd.img-5.10.0-19-amd64/usr/share/plymouth/
>
> cp /usr/share/plymouth/themes/homeworld/debian.png
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/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/Debian-new/custom-disk/boot/initrd.img-5.10.0-19-amd64/usr/share/plymouth/themes/homeworld
>
> mv initrd.img-5.10.0-19-amd64 initrd.img-5.10.0-19-amd64-
>
> cd
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/initrd.img-5.10.0-19-amd64-
>
> find . -print -depth | cpio -ov > ../initrd.img-5.10.0-19-amd64 :
> generated the cpio file called initrd.img-5.10.0-19-amd64
>
> cd ..
>
> gzip initrd.img-5.10.0-19-amd64 : generated the gzip file called "
> initrd.img-5.10.0-19-amd64"
>
> cd /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/
>
> mv initrd.img-5.10.0-19-amd64 initrd.img-5.10.0-19-amd64_
>
> cp 
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/initrd.img-5.10.0-19-amd64.gz
> /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-root/boot/
>
> size of the new (initrd.img-5.10.0-19-amd64) file is 178.4 MiB
> (187,099,720 byte),of the old one is : 78.8 MiB (82,661,551 byte) ; so
> probably there is something not good if the sizes are so different ?
>
> Anyway,I've burned a new ISO image with cubic and I've tried to boot
> it,but I've got the following error : https://ibb.co/GCBFcpK
>
> Il giorno sab 22 ott 2022 alle ore 18:02 Andrew M.A. Cater <
> amaca...@einval.com> ha scritto:
>
>> On Sat, Oct 22, 2022 at 05:13:18PM +0200, Thomas Schmitt wrote:
>> > Hi,
>> >
>> > Mario Marietto wrote:
>> > > I'm trying to change the pictures inside the /live/initrd.gz file.
>> >
>> > I really wonder where this file comes from.
>> >
>> >
>> > > BUT after having "burned" another ISO image using Cubic,I've seen
>> that it
>> > > still uses the old images that I have previously added inside the
>> > > /live/initrd file. I don't understand why ? It seems that this file is
>> > > re-generated taking the files from somewhere else.
>> >
>> > Prime suspect would be Cubic. The "u" in in its name means "Ubuntu".
>> > So it probably makes assumptions which the Debian Live ISO does not
>> > fulfill. Did you follow the advise of "Cubic PPA (cubic-wizard)" in
>> >   https://answers.launchpad.net/cubic/+question/703422
>> > to ask your question on the "official web site" ?
>> >
>> >
>>
>> Further to this: if you are dealing with Debian-live images as your base,
>> use Debian tools. If you're dealing with Ubuntu images use Ubuntu-based
>> PPAs. In general, they really don't mix - to the extent that there's
>> a whole section on the Debian wiki to this effect.
>>
>> https://wiki.debian.org/DontBreakDebian
>>
>> The number of people working on Debian-live images at any one time is
>> small: if you can't raise anyone, then I might also suggest having
>> a chat with Roland Clobus who is working on making live images
>> work reproducibly with the Reproducible build project.
>>
>> https://wiki.debian.org/DebianLive
>>
>> I see you're already contributing on the debian-live mailing list
>> so should find the appropriate people there. highvoltage, of course,
>> is also the Debian Project leader so is very busy with everything
>> else and not necessarily debian-live build problems.
>>
>> >
>> >
>> > > So. What's my problem ?
>> >
>> > It could be that you try to squeeze the square block into the round
>> hole.
>> > Either eliminate Cubic from your proceedings or ask its developer via
>> >   https://github.com/PJ-Singh-001/Cubic/issues
>> >
>> >
>> > Have a nice day :)
>> >
>> > Thomas
>> >
>>
>> With every good wish, as ever,
>>
>> Andy Cater
>>
>>
>
> --
> Mario.
>


-- 
Mario.

Reply via email to