grub version: 2.12 component: grub-mkrescue OS: Gentoo Linux
The .iso file created with "grub-mkrescue -o grub.iso" contains duplicate files in the /boot/grub/locale/ directory. For each .mo file there is also a .mo~ file with the same content, wasting 5.5MB in total. See transcript below. renergy ~ # grub-mkrescue -o grub.iso xorriso 1.5.6 : RockRidge filesystem manipulator, libburnia project. Drive current: -outdev 'stdio:grub.iso' Media current: stdio file, overwriteable Media status : is blank Media summary: 0 sessions, 0 data blocks, 0 data, 124g free Added to ISO image: directory '/'='/tmp/grub.GoPPTa' xorriso : UPDATE : 982 files added in 1 seconds xorriso : UPDATE : 982 files added in 1 seconds xorriso : NOTE : Copying to System Area: 512 bytes from file '/usr/lib/grub/i386-pc/boot_hybrid.img' ISO image produced: 13983 sectors Written to medium : 13983 sectors at LBA 0 Writing to 'stdio:grub.iso' completed successfully. renergy ~ # losetup -f grub.iso renergy ~ # losetup NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC /dev/loop0 0 0 0 0 /root/grub.iso 0 512 renergy ~ # mount /dev/loop0 /mnt/iso/ -t iso9660 -o ro renergy ~ # ls /mnt/iso/boot/grub/locale/ ast.mo [email protected]~ es.mo hu.mo~ lt.mo pt.mo~ uk.mo ast.mo~ [email protected] es.mo~ id.mo lt.mo~ ro.mo uk.mo~ ca.mo [email protected]~ fi.mo id.mo~ nb.mo ro.mo~ vi.mo ca.mo~ [email protected] fi.mo~ it.mo nb.mo~ ru.mo vi.mo~ da.mo [email protected]~ fr.mo it.mo~ nl.mo ru.mo~ zh_CN.mo da.mo~ [email protected] fr.mo~ ja.mo nl.mo~ sl.mo zh_CN.mo~ de_CH.mo [email protected]~ gl.mo ja.mo~ pa.mo sl.mo~ zh_TW.mo de_CH.mo~ [email protected] gl.mo~ ka.mo pa.mo~ sr.mo zh_TW.mo~ [email protected] [email protected]~ he.mo ka.mo~ pl.mo sr.mo~ [email protected]~ [email protected] he.mo~ ko.mo pl.mo~ sv.mo de.mo [email protected]~ hr.mo ko.mo~ pt_BR.mo sv.mo~ de.mo~ eo.mo hr.mo~ lg.mo pt_BR.mo~ tr.mo [email protected] eo.mo~ hu.mo lg.mo~ pt.mo tr.mo~ renergy ~ # for f in /mnt/iso/boot/grub/locale/*.mo; do diff $f $f~; done renergy ~ # ls -l /mnt/iso/boot/grub/locale/*.mo | awk '{total+=$5}END{print total}' 5524663 renergy ~ #
