Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Libreboot build system
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libreboot project
Libreboot build system
Commits
e709aed1
Commit
e709aed1
authored
1 year ago
by
livio
Committed by
Libreboot project
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Refactored try_user_config function name
parent
4b918b48
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/grub/config/grub.cfg
+4
-4
4 additions, 4 deletions
config/grub/config/grub.cfg
with
4 additions
and
4 deletions
config/grub/config/grub.cfg
+
4
−
4
View file @
e709aed1
...
...
@@ -40,7 +40,7 @@ if [ -f (cbfsdisk)/keymap.gkb ]; then
keymap
(cbfsdisk)/keymap.gkb
fi
function
try_user_config
{
function
try_user_
grub_
config
{
set
root
=
"${1}"
# The @/... entries are for cases where the BTRFS filesystem is being used
for
dir
in
boot
grub
grub2
boot/grub
boot/grub2
@/boot
@/grub
@/grub2
@/boot/grub
@/boot/grub2
; do
...
...
@@ -59,10 +59,10 @@ function search_grub {
echo
-n
"Attempting
to
load
grub.cfg
from
'${1}'
devices"
for
i
in
0
1
2
3
4
5
6
7
8
9
10
11
; do
for
part
in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; do
try_user_config
"(${1}${i},${part})"
try_user_
grub_
config
"(${1}${i},${part})"
done
# raw devices e.g. (ahci0) instead of (ahci0,1)
try_user_config
"(${1}${i})"
try_user_
grub_
config
"(${1}${i})"
done
echo
# Insert newline
}
...
...
@@ -93,7 +93,7 @@ function search_isolinux {
echo
# Insert newline
}
function
try_bootcfg
{
try_user_config
"${1}"
try_user_
grub_
config
"${1}"
try_isolinux_config
"${1}"
}
function
search_bootcfg
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment