BEAM process environ does not contain all key-value pairs from the generated erlinit.config file

Wanted a crash.dump file written so I appended ERL_CRASH_DUMP_SECONDS=-1 to the rootfs_overlay/etc/erlinit.config in the farmbot_system_rpi3 package.

Did mix firmware and the expected key-value is added to the target’s generated erlinit.config.
Boot up the target and that new appended key-value is missing :confused: in System.get_env etc.

To get any further I need help with 2 questions :slightly_smiling_face:

  • Which script or exe processes /etc/erlinit.config to setup env ?

  • How do those env key-value pairs get into the environ of the “main” Linux process which runs the VM ?

Thanks !