Skip to content
Snippets Groups Projects
Verified Commit 74b8f415 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

generate_medkit: move model detection from bootstrap to uri

parent da306b0a
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
......@@ -2,7 +2,17 @@
Root script for updater-ng configuration used for medkit generation.
]]
Script("https://repo.turris.cz/" .. os.getenv('BRANCH') .. '/lists/bootstrap.lua', {
-- Get target board
model = os.getenv('BOARD')
if not model then
-- TODO we might ask interactively
DIE("Target model has to be provided by BOARD environment variable.")
end
-- Note: this is named as model for backward compatibility with variable provided
-- by updater version <63
Export('model')
Script("https://repo.turris.cz/" .. os.getenv('BRANCH') .. '/' .. model .. '/lists/bootstrap.lua', {
pubkey = {
-- Turris release key
"data:base64,dW50cnVzdGVkIGNvbW1lbnQ6IFR1cnJpcyByZWxlYXNlIGtleSBnZW4gMQpSV1Rjc2c1VFhHTGRXOWdObEdITi9vZmRzTTBLQWZRSVJCbzVPVlpJWWxWVGZ5STZGR1ZFT0svZQo=",
......
......@@ -13,16 +13,6 @@ if root_dir == "/" then
DIE("Bootstrap is not allowed on root.")
end
-- Get target board
-- Note: this is named as model for backward compatibility with variable provided
-- by updater version <63
model = os.getenv('BOARD')
if not model then
-- TODO we might ask interactively
DIE("Target model has to be provided by BOARD environment variable.")
end
Export('model')
-- Load requested localizations
l10n = {}
for lang in os.getenv('L10N'):gmatch('[^,]+') do
......
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