AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

Functional parity with squashfs-tools #130

Closed Drsheppard01 closed 1 day ago

Drsheppard01 commented 1 week ago

I'm not sure if I should create this issue, as it's more of a help and advice thing

I am currently using Chimera Linux and my idea is to use a small script to get AppImage working. In a nutshell AppImage is ELF-Header + Squashfs Since AppImage relies on Glibc, to unpack it, you need to calculate the size of the ELF header and unpack it using unsquashfs -o as shown in this script:

https://github.com/Phantop/appdwarf/blob/main/appdwarf#L34

Is it possible to do this and if so, how with rdsquashfs or sqfs2tar

I'm counting on all the help I can get, Dr.Sheppard

AgentD commented 1 week ago

Hi @Drsheppard01 ,

If I understood it correctly, the idea is to unpack a SquashFS image stored at an offset within another file?

Right now, rdsquashfs does not have an option for that. You could use dd with the skip=.... option to extract the image from the ELF file and then pass it to rdsquashfs or sqfs2tar.

Drsheppard01 commented 1 day ago

Thanks for help @AgentD