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
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
f35d6500
Commit
f35d6500
authored
Dec 06, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: use a more reliable way to identify theme in stage1/scripts.d/01-grub
Use a more reliable way to identify the theme grub.
parent
635c5263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
01-grub
features.in/grub/stage1/scripts.d/01-grub
+3
-1
No files found.
features.in/grub/stage1/scripts.d/01-grub
View file @
f35d6500
...
...
@@ -62,7 +62,9 @@ fi
# copy grub theme
mkdir
-p
themes
GRUBTHEME
=
"
$(
grep
-m1
'/theme.txt;'
"
$CFG
"
|rev |
cut
-f2
-d
'/'
|rev
)
"
GRUBTHEME
=
"
$(
grep
-m1
'/theme.txt;'
"
$CFG
"
|tail
-n
1
)
"
GRUBTHEME
=
"
${
GRUBTHEME
%/*
}
"
GRUBTHEME
=
"
${
GRUBTHEME
##*/
}
"
if
[
-n
"
$GRUBTHEME
"
]
;
then
if
[
-d
"/boot/grub/themes/
$GRUBTHEME
"
]
;
then
cp
-r
/boot/grub/themes/
$GRUBTHEME
themes/
...
...
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