diff --git a/examples/hooks/reproducible/8510-reproducible-fonts_in_initramfs.hook.chroot b/examples/hooks/reproducible/8510-reproducible-fonts_in_initramfs.hook.chroot index 5157a1f5b..ea814f5db 100755 --- a/examples/hooks/reproducible/8510-reproducible-fonts_in_initramfs.hook.chroot +++ b/examples/hooks/reproducible/8510-reproducible-fonts_in_initramfs.hook.chroot @@ -20,7 +20,7 @@ then fi # Don't run if there is no font in the initrd.img file -if ! zless /initrd.img | cpio --list --quiet | grep "^var/cache/fontconfig" | grep ".cache-7$" > /dev/null; +if ! lsinitramfs /initrd.img | grep "^var/cache/fontconfig" | grep ".cache-7$" > /dev/null; then exit 0 fi