Re: Some of the parameters used in my genisoimage command don't produce a bootable ISO image
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.
> I have followed your suggestions,doing something like this :
> gunzip /live/initrd.gz
I also wonder about the absolute path "/live/initrd.gz".
You have a directory "/live" on your system ?
> cpio -idv < /live/initrd
It depends on the paths inside the cpio archive where the files end up.
Better first check by
cpio -t < /live/initrd | less
> cd initrd
So it did unpack a top directory ./initrd" ?
> find . -print -depth | cpio -ov > ../initrd
And is not the "../initrd" here the directory "initrd" into which you
just descended ?
I don't dare to imagine what happens if you succeed with directing
cpio's output to the parent directory of the current working directory.
But doesn't this fail with a complaint from the shell that you cannot
redirect to a directory ?
> gzip initrd
I guess there is a "cd .." missing before this ?
> 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" ?
> Inside the "live" folder I have the following files :
> config-5.10.0-18-amd64
> filesystem.size
> initrd-unpacked
> initrd.gz
> vmlinuz
> filesystem.manifest
> filesystem.squashfs
> initrd
> System.map-5.10.0-18-amd64
Of those i see in debian-live-11.5.0-amd64-xfce.iso only three:
config-5.10.0-18-amd64 , filesystem.squashfs , System.map-5.10.0-18-amd64
sudo mount debian-live-11.5.0-amd64-xfce.iso /mnt/iso
du -s /mnt/iso/live/*
yields
1 /mnt/iso/live/System.map-5.10.0-18-amd64
231 /mnt/iso/live/config-5.10.0-18-amd64
2194208 /mnt/iso/live/filesystem.squashfs
48618 /mnt/iso/live/initrd.img-5.10.0-18-amd64
6799 /mnt/iso/live/vmlinuz-5.10.0-18-amd64
Looking for files named "initrd*" by
find /mnt/iso -name 'initrd*'
yields
/mnt/iso/d-i/gtk/initrd.gz
/mnt/iso/d-i/initrd.gz
/mnt/iso/live/initrd.img-5.10.0-18-amd64
/mnt/iso/pool/main/k/kickseed/initrd-kickseed_0.63_all.udeb
/mnt/iso/pool/main/p/preseed/initrd-preseed_1.109_all.udeb
> 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
Reply to: