Skip to content

Custom script exit codes are ignored #272

@vbaidak

Description

@vbaidak

Environment

  • Provisioner version: 2.2.0
  • Provisioning style: naked
  • Target device: Raspberry Pi 5
  • Target storage: NVMe/SD card
  • Provisioning host: Raspberry Pi 5 running Raspberry Pi OS Trixie

Description

It appears that the exit codes returned by custom scripts are ignored by the provisioning process. When a custom script terminates with a non-zero exit code (for example exit 1), the script is still treated as successful and the provisioning continues.

Expected Behavior

If a custom script exits with a non-zero status code, the provisioning process should fail and stop.

Actual Behavior

The provisioning process continues even when the custom script exits with a failure code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions