diff --git a/helpers/medkit-updater-ng.lua b/helpers/medkit-updater-ng.lua
index 4f00cfcf69dff48a64c1486a7ebaa9e01a86a115..809b3a5e466c386ab5f5e399e87ae2718a9ff23c 100644
--- a/helpers/medkit-updater-ng.lua
+++ b/helpers/medkit-updater-ng.lua
@@ -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=",
diff --git a/lists/bootstrap.lua b/lists/bootstrap.lua
index 588d17144694657438df60e84f33775a938f3857..72fd496e07475cf32e67587c805541980483362f 100644
--- a/lists/bootstrap.lua
+++ b/lists/bootstrap.lua
@@ -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