Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Жора Змейкин
mkimage-profiles
Commits
0852cf5d
Commit
0852cf5d
authored
Jan 30, 2025
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rescue: cleanup all locales except C.UTF-8, set locale C.UTF-8
parent
c16d990f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
20-locale
features.in/rescue/rescue/image-scripts.d/20-locale
+9
-2
70-cleanup-locale.sh
...res.in/rescue/rescue/image-scripts.d/70-cleanup-locale.sh
+2
-6
No files found.
features.in/rescue/rescue/image-scripts.d/20-locale
View file @
0852cf5d
...
@@ -6,7 +6,14 @@ if [ -s /etc/sysconfig/i18n ]; then exit 0; fi
...
@@ -6,7 +6,14 @@ if [ -s /etc/sysconfig/i18n ]; then exit 0; fi
mkdir
-p
/etc/sysconfig
mkdir
-p
/etc/sysconfig
cat
>>
/etc/sysconfig/i18n
<<
_EOF_
cat
>>
/etc/sysconfig/i18n
<<
_EOF_
# mkimage-profiles live 20-locale hook
# mkimage-profiles live 20-locale hook
SYSFONT=LatArCyrHeb-16
LANG=C.UTF-8
LANG=en_US.utf
8
SUPPORTED=C.UTF-
8
_EOF_
_EOF_
# set locale C.UTF-8 for root (needed for p10)
cat
>
/root/.i18n
<<
_EOF_
LANGUAGE=C.UTF-8
LANG=C.UTF-8
_EOF_
:
:
features.in/rescue/rescue/image-scripts.d/70-cleanup-locale.sh
View file @
0852cf5d
#!/bin/sh
#!/bin/sh
# cleanup extra locales
find /usr/lib/locale /usr/share/locale
-mindepth
1
-maxdepth
1
\
CLEANUP_DIRS
=
"/usr/lib/locale /usr/share/locale"
-not
-name
'C*'
-exec
rm
-r
{}
\;
for
CLEANUP_DIR
in
$CLEANUP_DIRS
;
do
cd
"
$CLEANUP_DIR
"
rm
-fr
$(
ls
-1
|sed
'/en_US/d'
|
tr
-s
'\r\n'
' '
)
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment