Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Aug 18, 2022
  2. Jul 31, 2022
  3. Jul 26, 2022
  4. Jul 07, 2022
  5. Jul 02, 2022
  6. Jun 14, 2022
  7. Jun 08, 2022
  8. May 09, 2022
  9. Mar 24, 2022
  10. Feb 25, 2022
  11. Feb 23, 2022
  12. Feb 22, 2022
  13. Feb 21, 2022
  14. Feb 18, 2022
  15. Feb 16, 2022
    • Floris Bos's avatar
      gz/xz/zstd custom images: pad if image size is not dividable by 512 bytes · c00a451f
      Floris Bos authored
      Disk image sizes that are not dividable by 512 bytes should not
      exist, as that is the minimum sector size any disk can have, and
      the smallest unit an OS can write to a disk.
      
      We were already rejecting such image files if we know in advance
      the size was wrong, which we can test if they are uncompressed,
      if they are in an easy parsable file format such as .zip, or if
      the repository meta data indicated the uncompressed size.
      
      However for gz/xz/zstd files this check is not done, and it would
      fail at the verification stage instead.
      If encountering such corner case, pad the image instead of
      failing.
      
      Ref #364
      c00a451f
  16. Feb 14, 2022