Skip to content

Implement cache for initramfs-extra

Daniele Debernardi requested to merge feature/initramfs-extra-cache into master

Here the steps in few words:

  • list and sort all the files in BINARIES_EXTRA and osk_conf (stored in initfs_extra_files)
  • compute the md5 of each file (stored in initfs_extra_files_hashes)
  • compute md5 of the previous list of md5 (stored in initfs_extra_hash)
  • check if the cached file with the name initramfs-device-extra_hash exist
  • in case it dosn't exist, clear any existing cache and generate it again (same process as before)
  • copy cached file to final location

Initial idea was to compute md5 of all the files that will be saved in the archive, but the lddtree command is very time consuming.

Closes: #411

Merge request reports