Skip to content

rootfs tar with hardlinks across filesystems #27

Description

@jove1

Hello,
I don't seem to be able to create images from published ROOTFS archives.
It is impossible to extract a tar with hardlinks from /boot filesystem.

git clone https://github.com/chimera-linux/chimera-live
cd chimera-live
wget https://repo.chimera-linux.org/live/latest/chimera-linux-aarch64-ROOTFS-20250214-rpi.tar.gz
sudo ./mkimage.sh chimera-linux-aarch64-ROOTFS-20250214-rpi.tar.gz

BSD tar

Unpacking rootfs tarball...
./boot/config-6.12.13-0-rpi: Can't create 'boot/config-6.12.13-0-rpi': Invalid cross-device link
./boot/vmlinux-6.12.13-0-rpi: Can't create 'boot/vmlinux-6.12.13-0-rpi': Invalid cross-device link
./boot/dtbs/dtbs-6.12.13-0-rpi/overlays/vc4-kms-v3d-pi5.dtbo: Can't create 'boot/dtbs/dtbs-6.12.13-0-rpi/overlays/vc4-kms-v3d-pi5.dtbo': Invalid cross-device link
...
bsdtar: Error exit delayed from previous errors.
ERROR: could not extract input file: 
ERROR: could not install Chimera

GNU tar

Unpacking rootfs tarball...
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.capability'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.capability'
tar: ./boot/config-6.12.13-0-rpi: Cannot hard link to ‘./usr/lib/modules/6.12.13-0-rpi/apk-dist/boot/config-6.12.13-0-rpi’: Invalid cross-device link
tar: ./boot/vmlinux-6.12.13-0-rpi: Cannot hard link to ‘./usr/lib/modules/6.12.13-0-rpi/apk-dist/boot/vmlinux-6.12.13-0-rpi’: Invalid cross-device link
tar: ./boot/dtbs/dtbs-6.12.13-0-rpi/overlays/vc4-kms-v3d-pi5.dtbo: Cannot hard link to ‘./usr/lib/modules/6.12.13-0-rpi/apk-dist/boot/dtbs/dtbs-6.12.13-0-rpi/overlays/vc4-kms-v3d-pi5.dtbo’: Invalid cross-device link
...
tar: Exiting with failure status due to previous errors
ERROR: could not extract input file: 
ERROR: could not install Chimera

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions