kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
49 stars 12 forks source link

Add support for custom user scripts #463

Open wkz opened 4 months ago

wkz commented 4 months ago

Description

(Primarily) in debugging situations, there are times when you want to install some script to be run on every boot.

Typical scenarios:

Additional Information

IMPORTANT: We do not want any code to execute that can't be traced back to the startup-config. This was the primary shortcoming of #461, which led to this proposal.

Example usage:

No scripts are executed unless the service is enabled:

admin@infix-00-00-00:/> configure
admin@infix-00-00-00:/config/> edit rc.d
admin@infix-00-00-00:/config/rc.d/> set enabled

We then have a list of scripts that can be interactively edited, like container content mounts:

admin@infix-00-00-00:/config/rc.d/> text-editor script my-script content
... interactive editor starts up ...

General Information

Anyone can help out by sponsoring development of new features or contributing pull requests. Please use this issue for discussions related to the feature.

troglobit commented 1 week ago

CCB thinks most of this might already be covered by containers. But possibly interesting on builds without containers and for scripts that need to run very early.