Skip to content

Commit

Permalink
Live ISO: Keep xkeyboard-config translations (#1234)
Browse files Browse the repository at this point in the history
## Problem

- The X keyboard translations were missing

## Solution

- Keep the MO files in the Live ISO

## Notes

- The polkit-1 translations are not installed anymore (it was a Cockpit
dependency)
- This fixes the `rm: cannot remove
'/usr/share/locale/*/LC_MESSAGES/polkit-1.mo': No such file or
directory` error in Kiwi log
  • Loading branch information
lslezak authored May 17, 2024
2 parents 9cceba1 + 7779ee6 commit 1bc6b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion live/src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ls -1 "${IGNORE_OPTS[@]}" -I en_US /usr/share/locale/ | xargs -I% sh -c "echo 'R
ls -1 "${IGNORE_OPTS[@]}" -I "en_US*" -I "C.*" /usr/lib/locale/ | xargs -I% sh -c "echo 'Removing locale %...' && rm -rf /usr/lib/locale/%"

# delete unused translations (MO files)
for t in zypper gettext-runtime p11-kit polkit-1 xkeyboard-config; do
for t in zypper gettext-runtime p11-kit; do
rm /usr/share/locale/*/LC_MESSAGES/$t.mo
done
du -h -s /usr/{share,lib}/locale/
Expand Down

0 comments on commit 1bc6b95

Please sign in to comment.