Skip to content

Forward TARTELET_RUN_OPTIONS to tart as separate arguments - #135

Open
DDRBoxman wants to merge 1 commit into
framna-dk:mainfrom
coalharbourgroup:softnet-run-options
Open

Forward TARTELET_RUN_OPTIONS to tart as separate arguments#135
DDRBoxman wants to merge 1 commit into
framna-dk:mainfrom
coalharbourgroup:softnet-run-options

Conversation

@DDRBoxman

Copy link
Copy Markdown

Description

TARTELET_RUN_OPTIONS was appended to tart run as a single argv element, so any value with more than one flag was rejected as one unknown option

The value is now shell-tokenized into separate arguments via a small POSIX-style splitter that honors single/double quotes and backslash escapes, so a quoted value (such as a --dir= mount whose path contains spaces) is preserved instead of being split on every space.

Motivation and Context

It was not possible to enable softnet network isolation eg. (--net-softnet --net-softnet-allow=<subnet>) failed with Unknown option '--net-softnet --net-softnet-allow=...'.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

TARTELET_RUN_OPTIONS was appended to `tart run` as a single argv element, so
any value with more than one flag was rejected as one unknown option — e.g.
softnet network isolation (`--net-softnet --net-softnet-allow=<subnet>`) failed
with `Unknown option '--net-softnet --net-softnet-allow=...'`.

The value is now shell-tokenized into separate arguments via a small
POSIX-style splitter that honors single/double quotes and backslash escapes, so
a quoted value (such as a `--dir=` mount whose path contains spaces) is
preserved instead of being split on every space.
@DDRBoxman
DDRBoxman requested a review from simonbs as a code owner June 26, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant