Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Duplicate files in /boot/grub/locale/ of minimal install iso
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
renergy
n00b
n00b


Joined: 14 May 2025
Posts: 4

PostPosted: Tue May 20, 2025 11:54 am    Post subject: Duplicate files in /boot/grub/locale/ of minimal install iso Reply with quote

Accidentally found out today there are duplicate files in /boot/grub/locale/ dir of minimal installation iso, occupying 5.5MB of space. Or is there any reason to have there the *.mo~ files? Ordinary grub install have only *.mo files in that directory.

Code:
renergy ~ # losetup -Pf install-amd64-minimal-20250518T165514Z.iso
renergy ~ # losetup
NAME       SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE                                        DIO LOG-SEC
/dev/loop0         0      0         0  0 /root/install-amd64-minimal-20250518T165514Z.iso   0     512
renergy ~ # mount /dev/loop0 /mnt/loop
mount: /mnt/loop: WARNING: source write-protected, mounted read-only.
renergy ~ # ls /mnt/loop/boot/grub/locale/
ast.mo     [email protected]     [email protected]      eo.mo   gl.mo   id.mo   ko.mo   nl.mo      pt.mo   sr.mo   vi.mo
ast.mo~    [email protected]~    [email protected]~     eo.mo~  gl.mo~  id.mo~  ko.mo~  nl.mo~     pt.mo~  sr.mo~  vi.mo~
ca.mo      de.mo            [email protected]     es.mo   he.mo   it.mo   lg.mo   pa.mo      ro.mo   sv.mo   zh_CN.mo
ca.mo~     de.mo~           [email protected]~    es.mo~  he.mo~  it.mo~  lg.mo~  pa.mo~     ro.mo~  sv.mo~  zh_CN.mo~
da.mo      [email protected]     [email protected]   fi.mo   hr.mo   ja.mo   lt.mo   pl.mo      ru.mo   tr.mo   zh_TW.mo
da.mo~     [email protected]~    [email protected]~  fi.mo~  hr.mo~  ja.mo~  lt.mo~  pl.mo~     ru.mo~  tr.mo~  zh_TW.mo~
de_CH.mo   [email protected]   [email protected]       fr.mo   hu.mo   ka.mo   nb.mo   pt_BR.mo   sl.mo   uk.mo
de_CH.mo~  [email protected][email protected]~      fr.mo~  hu.mo~  ka.mo~  nb.mo~  pt_BR.mo~  sl.mo~  uk.mo~
renergy ~ # ls -l /mnt/loop/boot/grub/locale/
total 10814
-r--r--r-- 1 root root 127089 May 18 20:32 ast.mo
-r--r--r-- 1 root root 127089 May 18 20:32 ast.mo~
-r--r--r-- 1 root root 127966 May 18 20:32 ca.mo
-r--r--r-- 1 root root 127966 May 18 20:32 ca.mo~
-r--r--r-- 1 root root 119228 May 18 20:32 da.mo
-r--r--r-- 1 root root 119228 May 18 20:32 da.mo~
-r--r--r-- 1 root root 150657 May 18 20:32 de_CH.mo
-r--r--r-- 1 root root 150657 May 18 20:32 de_CH.mo~
-r--r--r-- 1 root root 226648 May 18 20:32 [email protected]
-r--r--r-- 1 root root 226648 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 150650 May 18 20:32 de.mo
-r--r--r-- 1 root root 150650 May 18 20:32 de.mo~
-r--r--r-- 1 root root 188002 May 18 20:32 [email protected]
-r--r--r-- 1 root root 188002 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 177539 May 18 20:32 [email protected]
-r--r--r-- 1 root root 177539 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 177536 May 18 20:32 [email protected]
-r--r--r-- 1 root root 177536 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 203723 May 18 20:32 [email protected]
-r--r--r-- 1 root root 203723 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 157104 May 18 20:32 [email protected]
-r--r--r-- 1 root root 157104 May 18 20:32 [email protected]~
-r--r--r-- 1 root root 138592 May 18 20:32 [email protected]
-r--r--r-- 1 root root 138592 May 18 20:32 [email protected]~
-r--r--r-- 1 root root  43394 May 18 20:32 eo.mo
-r--r--r-- 1 root root  43394 May 18 20:32 eo.mo~
-r--r--r-- 1 root root 130267 May 18 20:32 es.mo
-r--r--r-- 1 root root 130267 May 18 20:32 es.mo~
-r--r--r-- 1 root root 132479 May 18 20:32 fi.mo
-r--r--r-- 1 root root 132479 May 18 20:32 fi.mo~
-r--r--r-- 1 root root 157703 May 18 20:32 fr.mo
-r--r--r-- 1 root root 157703 May 18 20:32 fr.mo~
-r--r--r-- 1 root root 103027 May 18 20:32 gl.mo
-r--r--r-- 1 root root 103027 May 18 20:32 gl.mo~
-r--r--r-- 1 root root  91753 May 18 20:32 he.mo
-r--r--r-- 1 root root  91753 May 18 20:32 he.mo~
-r--r--r-- 1 root root 130252 May 18 20:32 hr.mo
-r--r--r-- 1 root root 130252 May 18 20:32 hr.mo~
-r--r--r-- 1 root root 137952 May 18 20:32 hu.mo
-r--r--r-- 1 root root 137952 May 18 20:32 hu.mo~
-r--r--r-- 1 root root  28229 May 18 20:32 id.mo
-r--r--r-- 1 root root  28229 May 18 20:32 id.mo~
-r--r--r-- 1 root root 116936 May 18 20:32 it.mo
-r--r--r-- 1 root root 116936 May 18 20:32 it.mo~
-r--r--r-- 1 root root  45083 May 18 20:32 ja.mo
-r--r--r-- 1 root root  45083 May 18 20:32 ja.mo~
-r--r--r-- 1 root root 156882 May 18 20:32 ka.mo
-r--r--r-- 1 root root 156882 May 18 20:32 ka.mo~
-r--r--r-- 1 root root 156029 May 18 20:32 ko.mo
-r--r--r-- 1 root root 156029 May 18 20:32 ko.mo~
-r--r--r-- 1 root root   7774 May 18 20:32 lg.mo
-r--r--r-- 1 root root   7774 May 18 20:32 lg.mo~
-r--r--r-- 1 root root 100930 May 18 20:32 lt.mo
-r--r--r-- 1 root root 100930 May 18 20:32 lt.mo~
-r--r--r-- 1 root root 128143 May 18 20:32 nb.mo
-r--r--r-- 1 root root 128143 May 18 20:32 nb.mo~
-r--r--r-- 1 root root 126941 May 18 20:32 nl.mo
-r--r--r-- 1 root root 126941 May 18 20:32 nl.mo~
-r--r--r-- 1 root root  61811 May 18 20:32 pa.mo
-r--r--r-- 1 root root  61811 May 18 20:32 pa.mo~
-r--r--r-- 1 root root 149584 May 18 20:32 pl.mo
-r--r--r-- 1 root root 149584 May 18 20:32 pl.mo~
-r--r--r-- 1 root root  86581 May 18 20:32 pt_BR.mo
-r--r--r-- 1 root root  86581 May 18 20:32 pt_BR.mo~
-r--r--r-- 1 root root 131747 May 18 20:32 pt.mo
-r--r--r-- 1 root root 131747 May 18 20:32 pt.mo~
-r--r--r-- 1 root root 158375 May 18 20:32 ro.mo
-r--r--r-- 1 root root 158375 May 18 20:32 ro.mo~
-r--r--r-- 1 root root 170229 May 18 20:32 ru.mo
-r--r--r-- 1 root root 170229 May 18 20:32 ru.mo~
-r--r--r-- 1 root root  93925 May 18 20:32 sl.mo
-r--r--r-- 1 root root  93925 May 18 20:32 sl.mo~
-r--r--r-- 1 root root 190584 May 18 20:32 sr.mo
-r--r--r-- 1 root root 190584 May 18 20:32 sr.mo~
-r--r--r-- 1 root root 128361 May 18 20:32 sv.mo
-r--r--r-- 1 root root 128361 May 18 20:32 sv.mo~
-r--r--r-- 1 root root  83570 May 18 20:32 tr.mo
-r--r--r-- 1 root root  83570 May 18 20:32 tr.mo~
-r--r--r-- 1 root root 199280 May 18 20:32 uk.mo
-r--r--r-- 1 root root 199280 May 18 20:32 uk.mo~
-r--r--r-- 1 root root 162663 May 18 20:32 vi.mo
-r--r--r-- 1 root root 162663 May 18 20:32 vi.mo~
-r--r--r-- 1 root root 139130 May 18 20:32 zh_CN.mo
-r--r--r-- 1 root root 139130 May 18 20:32 zh_CN.mo~
-r--r--r-- 1 root root  30315 May 18 20:32 zh_TW.mo
-r--r--r-- 1 root root  30315 May 18 20:32 zh_TW.mo~
renergy ~ # for f in /mnt/loop/boot/grub/locale/*.mo; do diff $f $f~; done
renergy ~ # ls -l /mnt/loop/boot/grub/locale/*~ | awk '{total+=$5}END{print total}'
5524663
renergy ~ #
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 2033
Location: Germany

PostPosted: Tue May 20, 2025 2:17 pm    Post subject: Reply with quote

This looks to me like backup files, but not sure how to address this. Maybe a ticket at bugs.gentoo.org
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4052

PostPosted: Tue May 20, 2025 4:16 pm    Post subject: Reply with quote

9 months old iso has similar issues:
Code:
find /run/media/user/gentoo-amd64-livegui-20240923T191858Z -name *.*~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ast.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ca.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/da.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/de.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/de_CH.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/[email protected]~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/eo.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/es.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/fi.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/fr.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/gl.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/he.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/hr.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/hu.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/id.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/it.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ja.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ka.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ko.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/lg.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/lt.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/nb.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/nl.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/pa.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/pl.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/pt.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/pt_BR.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ro.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/ru.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/sl.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/sr.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/sv.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/tr.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/uk.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/vi.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/zh_CN.mo~
/run/media/user/gentoo-amd64-livegui/boot/grub/locale/zh_TW.mo~

5 536 768 on-disk bytes

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 14 May 2025
Posts: 4

PostPosted: Tue May 20, 2025 6:58 pm    Post subject: Reply with quote

It seems to be an issue with grub itself. catalyst, which makes isos, uses grub-mkrescue. If I invoke grub-mkrescue separately, I also get those duplicates (backup files) in the created .iso file
Code:
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,  127g free
Added to ISO image: directory '/'='/tmp/grub.ciohPZ'
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 ~ # mount grub.iso /mnt/iso
mount: /mnt/iso: WARNING: source write-protected, mounted read-only.
renergy ~ # ls /mnt/iso/boot/grub/locale/
ast.mo     [email protected]     [email protected]      eo.mo   gl.mo   id.mo   ko.mo   nl.mo      pt.mo   sr.mo   vi.mo
ast.mo~    [email protected]~    [email protected]~     eo.mo~  gl.mo~  id.mo~  ko.mo~  nl.mo~     pt.mo~  sr.mo~  vi.mo~
ca.mo      de.mo            [email protected]     es.mo   he.mo   it.mo   lg.mo   pa.mo      ro.mo   sv.mo   zh_CN.mo
ca.mo~     de.mo~           [email protected]~    es.mo~  he.mo~  it.mo~  lg.mo~  pa.mo~     ro.mo~  sv.mo~  zh_CN.mo~
da.mo      [email protected]     [email protected]   fi.mo   hr.mo   ja.mo   lt.mo   pl.mo      ru.mo   tr.mo   zh_TW.mo
da.mo~     [email protected]~    [email protected]~  fi.mo~  hr.mo~  ja.mo~  lt.mo~  pl.mo~     ru.mo~  tr.mo~  zh_TW.mo~
de_CH.mo   [email protected]   [email protected]       fr.mo   hu.mo   ka.mo   nb.mo   pt_BR.mo   sl.mo   uk.mo
de_CH.mo~  [email protected][email protected]~      fr.mo~  hu.mo~  ka.mo~  nb.mo~  pt_BR.mo~  sl.mo~  uk.mo~
renergy ~ # for f in /mnt/iso/boot/grub/locale/*.mo; do diff $f $f~; done
renergy ~ #


Last edited by renergy on Wed May 21, 2025 4:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
renergy
n00b
n00b


Joined: 14 May 2025
Posts: 4

PostPosted: Wed May 21, 2025 7:34 am    Post subject: Reply with quote

By the way, for the grub-mkrescue command to work, dev-libs/libisoburn and sys-fs/mtools have to be manually installed (to provide xorriso and mformat commands); these packages are not in the dependencies of grub's ebuild, which is a bug in itself.

EDIT: Not a bug, my bad. On the first install of the grub, emerge informs about the neccessity to install those

/var/log/portage/elog/summary.log
Code:
Install additional packages for optional runtime features:
...
  dev-libs/libisoburn for creating rescue media (grub-mkrescue)
  sys-fs/mtools for creating rescue media (grub-mkrescue)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »