main/postmarketos-mkinitfs: Avoid storing initramfs-extra twice
At the moment we store the same initramfs-extra twice on the file system:
/boot/initramfs-<flavor>-extra
/var/cache/postmarketos-mkinitfs/initramfs-<flavor>-extra_<hash>
The second copy is exactly the same file, just with the <hash>
(for caching)
appended to the filename.
We can avoid this by appending the hash directly to the filename on the boot partition, i.e.
/boot/initramfs-<flavor>-extra_<hash>
This is possible because we only reference initramfs-extra from the main
initramfs, and we already replace the path in it dynamically.
It will just let the main initramfs load -extra_<hash>
instead of just -extra
.
This saves a few megabytes of disk space on the rootfs.
Cc: @drebrez