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
Ximper Linux
mkimage-profiles
Commits
67c14e42
Commit
67c14e42
authored
Feb 13, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Add copy grub theme and locale
Thanks underwit@ See-also: ALT bug 39632
parent
6fafc883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
01-grub
features.in/grub/stage1/scripts.d/01-grub
+24
-0
No files found.
features.in/grub/stage1/scripts.d/01-grub
View file @
67c14e42
...
@@ -63,5 +63,29 @@ if [ "$DEBUG" != 2 ]; then
...
@@ -63,5 +63,29 @@ if [ "$DEBUG" != 2 ]; then
rm
-r
.in/
rm
-r
.in/
fi
fi
# copy grub theme
mkdir
-p
themes
GRUBTHEME
=
"
$(
grep
-m1
'/theme.txt;'
"
$CFG
"
|rev |
cut
-f2
-d
'/'
|rev
)
"
if
[
-n
"
$GRUBTHEME
"
]
;
then
if
[
-d
"/boot/grub/themes/
$GRUBTHEME
"
]
;
then
cp
-r
/boot/grub/themes/
$GRUBTHEME
themes/
else
echo
"Error: Directory /boot/grub/themes/
$GRUBTHEME
not exist"
exit
1
fi
fi
# copy grub locale
mkdir
-p
locale
if
[
!
-e
"
$boot
/locale"
-a
-f
"
$CFG
"
]
;
then
langs
=
$(
grep
-oP
"([a-z]{2})(?=_[A-Z]{2})"
"
$CFG
"
|
sort
|
uniq
)
for
i
in
$langs
;
do
fp
=
"/usr/share/locale/
$i
/LC_MESSAGES/grub.mo"
[
-f
$fp
]
&&
cp
-arf
"
$fp
"
"locale/
$i
.mo"
done
fi
exit
0
# NB: there will be final macro expansion based on actual image sizes
# NB: there will be final macro expansion based on actual image sizes
# done by features.in/grub/scripts.d/20-propagator-ramdisk-grub
# done by features.in/grub/scripts.d/20-propagator-ramdisk-grub
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