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
ff5a7425
Commit
ff5a7425
authored
1 year ago
by
livio
Committed by
Libreboot project
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Improved GRUB directory listing by automatically filling from any possible (super/sub)directories
parent
0747fe06
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
+16
-4
16 additions, 4 deletions
config/grub/config/grub.cfg
with
16 additions
and
4 deletions
config/grub/config/grub.cfg
+
16
−
4
View file @
ff5a7425
...
...
@@ -136,12 +136,24 @@ menuentry "List all bootable medias" {
scan_l_media_menus
}
# FIXME Make an automatic override for BTRFS directories instead of copypasting with a "@/" in front of every element
# Default list of GRUB possible directories. The @/... entries are for cases where the BTRFS filesystem is being used
set
grub_dirs
=
"boot grub grub2 boot/grub boot/grub2 @/boot @/grub @/grub2 @/boot/grub @/boot/grub2"
set
grub_dirs
=
""
# Complete list of every possible grub directory, automatically filled later
set grub_dir_super="@" # Possible list of superdirectories (BTRFS can have those)
set
grub_dir
=
"boot grub grub2"
# First level directories list
set grub_dir_sub="grub grub2" # Second level directories list
for
i
in
''
${grub_dir_super}
; do
grub_dirs
=
"${grub_dirs} ${i}"
for
j
in
${grub_dir}
; do
grub_dirs
=
"${grub_dirs} ${i}/${j}"
for
k
in
${grub_dir_sub}
; do
grub_dirs
=
"${grub_dirs} ${i}/${j}/${k}"
done
done
done
# Default list of GRUB possible config files prefixes
set
grub_conf_names
=
"
''
osboot_ autoboot_ libreboot_ coreboot_"
set
grub_conf_names
=
"osboot_ autoboot_ libreboot_ coreboot_"
# Creates a menuentry for GRUB. First argument is menu text without spaces then root and configfile
function
grub_menuentry
{
...
...
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