As @ijohnson indicated in Disabling console-conf from gadget or core config option - #9 by ijohnson you can use:
defaults:
system:
service:
console-conf:
disable: true
You should be able to set those on system (similarly to console conf):
defaults:
system:
<your-settings-here>
Feel free to raise it in the forum If a particular setting you need is missing,
When were those scripts executed? Were part of a snap?
How was this achieved before? We can surely look into exposing more pi configuration knobs.
AFAIK you can list the snap as present only in a particular mode inside the model:
snaps:
...
- name: mysnap-that-does-init
modes: [ run ]
Alternatively, you can look at /proc/cmdline to check for snapd_recovery_mode=run