Verified Commit 2dd0fa41 authored by Karel Koci's avatar Karel Koci 🤘

Propagate root_dir to configuration

parent 0b60f417
......@@ -604,6 +604,12 @@ no effect on the updater's behaviour, unless specifically mentioned.
Note that some of the tables might be generated on demand by
meta-table events, making it impossible to list keys.
Root directory specified from command line or `/` if no such option
was specified. Use this if you are accessing some files.
......@@ -232,6 +232,7 @@ function load_state_vars()
might not have them legally and we mark that by providing nil.
state_vars = {
root_dir = backend.root_dir,
model = utils.strip(utils.slurp('/tmp/sysinfo/model')),
board_name = utils.strip(utils.slurp('/tmp/sysinfo/board_name')),
turris_version = utils.strip(utils.slurp('/etc/turris-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