Skip to content

Add support for custom user scripts #463

Closed

Description

@wkz

Description

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

Typical scenarios:

  • A hardware engineer want some component to be automatically placed in a test mode
  • We want to start a custom data collector to help debug a transient issue

Up to this point, this has been solved by building custom images, but it would be great if this could be added to production images as well.

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 ...

These rc.d scripts would be run at the same point as /etc/rc.local on systems with Finit.

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.

Activity

  1. added
    triage
    on May 22, 2024
  2. troglobit commented on Oct 1, 2024

    @troglobit
    Contributor

    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.

  3. removed
    triage
    on Oct 1, 2024
  4. added this to the FUTURE milestone on Oct 1, 2024
  5. wkz commented on Dec 5, 2024

    @wkz
    ContributorAuthor

    Update: We should consider generalizing this so that users can inject files at any path. Then a user can drop in extra config snippets to deamons with daemon.d/ support. E.g., to enable FRR debugging, enable some dnsmasq option, or similar.

  6. added
    enhancement
    and removed on Feb 7, 2025
  7. added
    cn:dream
    and removed
    cn:dream
    on Sep 1, 2026
  8. self-assigned this
    on Sep 8, 2026
  9. modified the milestones: FUTURE, Infix v26.09 on Sep 8, 2026
  10. linked a pull request that will close this issueSupport for custom user scripts #1621on Sep 9, 2026
  11. added 2 commits that reference this issue on Sep 9, 2026
    c7d9998
    62f4f76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions