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
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
913540b3
Commit
913540b3
authored
Nov 24, 2023
by
Michael Shigorin
Committed by
Anton Midyukov
Nov 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e2k: update/cleanup 40-e2k-boot-conf
Those comments were either outdated or unneeded here.
parent
7b44a36c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
40-e2k-boot-conf
features.in/e2k/image-scripts.d/40-e2k-boot-conf
+1
-5
No files found.
features.in/e2k/image-scripts.d/40-e2k-boot-conf
View file @
913540b3
#!/bin/sh -efu
# NB: don't stick BOOTFS here, it has slightly different semantics
# 4.9.76-elbrus-def-alt1.11.1 -> def
# 5.10.194-elbrus-def-alt1.12.2 -> def
get_label
()
{
echo
"
${
1
# *
}
"
|
sed
-r
's,.*elbrus-([0-9a-z]+)-.*$,\1,'
;
}
KVERSIONS
=
"
$(
rpm
-qa
'kernel-image*'
\
...
...
@@ -16,14 +15,11 @@ KVERSIONS="$(rpm -qa 'kernel-image*' \
cd
/boot
#rm -f .origver
echo
"** KVERSIONS=[
$KVERSIONS
]"
>
&2
if
[
"
`
echo
$KVERSIONS
|
wc
-w
`
"
=
1
]
;
then
# 2+ labels
echo
-e
"default=
`
get_label
$KVERSIONS
`
\n
"
>>
boot.conf
fi
# FIXME: relies on particular (current) kernel package naming scheme
for
v
in
$KVERSIONS
;
do
l
=
"
`
get_label
"
$v
"
`
"
cat
>>
boot.conf
<<
EOF
...
...
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