Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
e149a8a8
Commit
e149a8a8
authored
Feb 24, 2023
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Add raw kernel revision in shadir metadata.
parent
93e0ffce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
generation/40upload-image.sh
generation/40upload-image.sh
+2
-0
No files found.
generation/40upload-image.sh
View file @
e149a8a8
...
...
@@ -18,12 +18,14 @@ version_to_list () {
# remove everything after "+" and "-", and separate numbers according to "."
python3
-c
"import sys; print(list(map(int, sys.argv[1].split(
\"
+
\"
)[0].split(
\"
-
\"
)[0].split(
\"
.
\"
))))"
"
$1
"
}
kernel_revision_arch
=
$(
uname
-r
)
# the keys "file" and "urlmd5" are sometimes mandatory in shadir metadata
# and are defined here only for the sake of shadir compliance
json_metadata
=
"{
\
\"
server-group
\"
:
\"
$SERVER_GROUP
\"
,
\
\"
kernel-version
\"
:
\"
$(
version_to_list
$(
uname
-v
|
cut
-d
' '
-f4
))
\"
,
\
\"
kernel-revision
\"
:
\"
${
kernel_revision_arch
%-*
}
\"
,
\
\"
mca-version
\"
:
\"
$(
version_to_list
$MCA_VERSION
)
\"
,
\
\"
flb-version
\"
:
\"
$(
version_to_list
$FLB_VERSION
)
\"
,
\
\"
plg-version
\"
:
\"
$(
version_to_list
$PLG_VERSION
)
\"
,
\
...
...
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