cpio: File digest mismatch
Jeffrey Johnson
n3npq at me.com
Mon Aug 14 20:35:36 CEST 2017
> On Aug 14, 2017, at 2:31 PM, Jan Palus <atler at pld-linux.org> wrote:
>
> I've created a basic package for libguestfs fixed appliance (http://download.libguestfs.org/binaries/appliance/) however there seems to be an issue with how filesystem image is packaged by rpm. It's an ext2 fs file with size of 4G and only about ~256M used space:
>
> $ file root
> root: Linux rev 1.0 ext2 filesystem data, UUID=99344094-4997-41f9-9e01-73452b284ab3 (large files)
>
> $ ls -lh root
> -rw-r--r-- 1 jan users 4.0G 08-14 20:16 root
>
> $ du -h root
> 275M root
>
> Now rpm installation fails with:
>
> error: unpacking of archive failed on file /usr/lib64/guestfs/root;5991e7a3: cpio: File digest mismatch
>
> Looking at cpio output:
>
> $ rpm2cpio libguestfs-appliance-fixed-1.36.1-1.x86_64.rpm|cpio -idmv
> ./usr/lib64/guestfs/initrd
> ./usr/lib64/guestfs/kernel
> ./usr/lib64/guestfs/root
> cpio: warning: skipped 4026531840 bytes of junk
> ...
>
> it seems like "free space" is just considered "junk". Not really sure if that's the issue but is there a way to tell rpm not to treat it as junk?
>
THat’s a spin, not an rpm, error message.
Meanwhile there are limits to file size in cpio headers used by rpm payloads that you have likely crossed.
73 de Jeff
>
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
More information about the pld-devel-en
mailing list