I am not sure, but this should be extended to /usr/lib in rpm/kernel-binary.spec.in: boot/initrd-*) echo "%%ghost /$f" continue ;; ?