Re: Duplicate files /boot/grub/locale/*.mo~ in iso file made by grub-mkrescue

"Thomas Schmitt" <[email protected]> Sat, 24 May 2025 16:53:31 +0200
Newsgroups gmane.comp.boot-loaders.grub.bugs
Message-ID <[email protected]>
Hi,

i got a little experiment for you to check whether the .mo~ files
really eat up 2.7 MB in your ISO. They would not if they were hardlinks
in the /tmp/grub.* directory.

  $ path_to_iso=./output.iso
  $ xorriso -indev "$path_to_iso" -find / -name '[email protected]*' -exec report_lba --
  ...
  Report layout: xt , Startlba ,   Blocks , Filesize , ISO image path
  File data lba:  0 ,     3151 ,       73 ,   147664 , '/boot/grub/locale/[email protected]'
  $

If you see two lines with identical numbers, like

  File data lba:  0 ,     3151 ,       73 ,   147664 , '/boot/grub/locale/[email protected]'
  File data lba:  0 ,     3151 ,       73 ,   147664 , '/boot/grub/locale/[email protected]~'

then both files share the same content storage in the ISO.
The waste would only be about a few dozen ISO 9660 directory records
with about a hundred bytes each.


Have a nice day :)

Thomas