Commit e149a8a8 authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Add raw kernel revision in shadir metadata.

parent 93e0ffce
......@@ -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)\", \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment