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
d4c6f995
Commit
d4c6f995
authored
1 year ago
by
livio
Committed by
Libreboot project
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Moved file system check out of GRUB menu function as it's necessary for any bootloader0
parent
da44f929
No related branches found
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
+5
-5
5 additions, 5 deletions
config/grub/config/grub.cfg
with
5 additions
and
5 deletions
config/grub/config/grub.cfg
+
5
−
5
View file @
d4c6f995
...
...
@@ -91,7 +91,11 @@ function list_lmedia {
# Create menuitems that boot any valid previously detected media
function
make_boot_menus
{
for
i
in
${tgt_medias}
; do
grub_create_menu
${i}
if
[ ! -d ${i}/ ]
; then # Root is invalid: maybe unsupported FS or encrypted one
cryptomount
${i}
else
grub_create_menu
${i}
# Look for grub entries in known directories
fi
echo
-n
"."
done
echo
...
...
@@ -139,10 +143,6 @@ function grub_menuentry {
function
grub_create_menu
{
set
root
=
"${1}"
if
[ ! -d / ]
; then # Root is invalid: maybe unknown FS or encrypted one
cryptomount
${1}
return
;
fi
for
dir
in
${grub_dirs}
; do
# In order to save time, we do not attempt anything on non existing directory.
if
[ -d /"${dir}"/ ]
; then
...
...
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