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
80e83624
Commit
80e83624
authored
Jan 05, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: fixed search default in stage1/scripts.d/01-grub
The definition of the default menu item has been fixed. Grub.cfg does not use label, uses --id. It is assumed that --id is given last.
parent
b9e5244e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
01-grub
features.in/grub/stage1/scripts.d/01-grub
+3
-3
No files found.
features.in/grub/stage1/scripts.d/01-grub
View file @
80e83624
...
...
@@ -24,10 +24,10 @@ fi
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$CFG
"
# there should be DEFAULT directive there (at least for alterator-netinst)
if
!
grep
-i
'^default'
"
$CFG
"
;
then
DEFAULT
=
"
$(
grep
-i
'
^label '
"
$CFG
"
|
head
-1
|
cut
-f2
-d
' '
)
"
if
!
grep
-i
'^default'
.in/[0-9][0-9]
*
.cfg
;
then
DEFAULT
=
"
$(
grep
-i
'
\-\-id '
.in/[0-9][0-9]
*
.cfg |
head
-1
| rev|
cut
-f2
-d
' '
|rev
)
"
if
[
-n
"
$DEFAULT
"
]
;
then
echo
"default
$DEFAULT
"
>>
"
$CFG
"
echo
"default
=
$DEFAULT
"
>>
"
$CFG
"
else
echo
"error: no DEFAULT or UI directive and cannot guess"
>
&2
exit
1
...
...
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