On Mon, 27 Mar 2023 16:16:01 +0200
Roberto Ragusa <mail(a)robertoragusa.it> wrote:
On 3/26/23 21:26, Todd Zullinger wrote:
> With the Live images, the OS is in LiveOS/squashfs.img,
> which itself contains only the rootfs.img. So there's not
> much exploring to be done there without extracting or
> mountint the rootfs image.
With a plain iso it would be as easy as
iso-info -l myiso.iso
but for the livecd you have to go inside the squash fs with
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp;
unsquashfs -l isotmp
and it is still not enough since you have a filesystem inside, so
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp
unsquashfs isotmp LiveOS/rootfs.img
e2ls squashfs-root/LiveOS/rootfs.img:/usr/bin -l
all done in a freshly created dir with some space, which you will
remove at the end. Unfortunately this can't be done in a single pipe
without intermediate files.
Regards.
Exactly what I needed. Many thanks.