Skip to content
Snippets Groups Projects
Commit 86c2c01c authored by Dylan Aïssi's avatar Dylan Aïssi Committed by Walter Lozano
Browse files

create-rpi-oslist: add init_format and devices to the generated apertis-oslist files


Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 97a62372
No related branches found
No related tags found
1 merge request!208create-rpi-oslist: add init_format and devices to the generated apertis-oslist files
Pipeline #783604 passed
......@@ -14,7 +14,9 @@ entry_template='{
"image_download_size": 0,
"image_download_sha256": "",
"release_date": "",
"website": ""
"website": "",
"init_format": "",
"devices": 0
}'
jq_command_string='. | .name=$name
| .description=$description
......@@ -24,7 +26,9 @@ jq_command_string='. | .name=$name
| .image_download_size=$image_download_size
| .image_download_sha256=$image_download_sha256
| .release_date=$release_date
| .website=$website'
| .website=$website
| .init_format=$init_format
| .devices=$devices'
generate_oslist_entry() {
image_dir="${base_dir}/${distro}/${release}/arm64/${type}"
......@@ -67,6 +71,8 @@ generate_oslist_entry() {
--arg image_download_sha256 "$(cat ${image_file}.gz.sha256 | cut -f 1 -d ' ')" \
--arg release_date "$(stat -c %w ${image_file}.gz | cut -f 1 -d ' ')" \
--arg website "https://www.apertis.org/policies/images/#${typelink}" \
--arg init_format "systemd" \
--argjson devices "[\"pi4-64bit\",\"pi3-64bit\"]" \
"${jq_command_string}" \
> ${tmpdir}/oslist-entry-${type}-${variant}.json
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment