How to debug image-customization.lua? #3217
-
We are building two firmware variants: fastd and l2tp. Translated to Lua, this should be something similar to this:
But this does not work. Even if I enter complete nonsense into image-customization.lua, the build process simply goes on. How can I figure out if image-customization.lua is valid? Is there an easy way to see the the resulting values of "features" and "packages"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The file being ignored when it is invalid is a bug, I have created #3218 to track this. The first line has a syntax error (it should be |
Beta Was this translation helpful? Give feedback.
The file being ignored when it is invalid is a bug, I have created #3218 to track this.
The first line has a syntax error (it should be
local os = require 'os'
), but it would not work anyways -image-customization.lua
runs sandboxed, none of the standard Lua functions and modules likerequire
oros
are accessible.