Open sfxworks opened 1 year ago
Description
Files of the same copy with different names do not get stored.
Trying to store both a default initramfs img and fallback img into a UOR collection for booting.
/mnt/iso/arch/boot/x86_64 sha1sum initramfs-linux-hardened.img INT ✘ 243bc6a8392b9c1d316cf2f08e5b0fe0ed5b2379 initramfs-linux-hardened.img /mnt/iso/arch/boot/x86_64 sha1sum initramfs-linux-hardened-fallback.img ✔ 243bc6a8392b9c1d316cf2f08e5b0fe0ed5b2379 initramfs-linux-hardened-fallback.img
As we see they're the same file, but with different names.
They are not included in the final bundle
uor inspect --reference go.registry:1338/archiso:latest | grep initramfs-linux-hardened arch/boot/x86_64/initramfs-linux-hardened-fallback.img sha256:6a7d6e2ed9cbc8b98af3ba128290f1a6f93c25f228a9c81fb622c7444669493d 31808830 application/zstd
UOR definitely sees these files as it passes over them when making the collection
newfstatat(AT_FDCWD, "/mnt/iso/arch/boot/x86_64/initramfs-linux-hardened-fallback.img", {st_mode=S_IFREG|0444, st_size=31808830, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/mnt/iso/arch/boot/x86_64/initramfs-linux-hardened.img", {st_mode=S_IFREG|0444, st_size=31808830, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/mnt/iso/arch/boot/x86_64/vmlinuz-linux-hardened", {st_mode=S_IFREG|0444, st_size=9758880, ...}, AT_SYMLINK_NOFOLLOW) = 0
Steps to reproduce the issue:
Describe the results you received: All files aren't in the collection
Describe the results you expected: All files are in the collection
What version of the UOR client are you using:
UOR Client: Version: v0.3.0 Go Version: go1.17.13 Git Commit: 006ab2f Build Date: 2022-08-29T21:50:33Z Platform: linux/amd64
Description
Files of the same copy with different names do not get stored.
Trying to store both a default initramfs img and fallback img into a UOR collection for booting.
As we see they're the same file, but with different names.
They are not included in the final bundle
UOR definitely sees these files as it passes over them when making the collection
Steps to reproduce the issue:
Describe the results you received: All files aren't in the collection
Describe the results you expected: All files are in the collection
What version of the UOR client are you using: