Skip to content

Say what the init system toggle actually does - #246

Open
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:fix/init-description
Open

Say what the init system toggle actually does#246
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:fix/init-description

Conversation

@kacperpaczos

Copy link
Copy Markdown
Contributor

Fixes #245

distrobox create --init does two things, and the toggle's subtitle only mentioned one:

--init/-I: use init system (like systemd) inside the container.
this will make host's processes not visible from within the container. (assumes --unshare-process)

So the option makes a box more isolated. "Adds systemd support - ignore if you're not sure" reads like the opposite - closer to a full system, closer to the host - which is exactly how it gets switched on by someone trying to reach the host from inside a box.

The subtitle now names both effects, and the detail goes in a tooltip, following the hostname row right below it:

  • subtitle: Runs systemd inside the box and hides the host's processes from it
  • tooltip: Turn this on for services that have to run inside the box. It is not needed to use the host's tools, and it makes the box more isolated, not less.

Text only - the flag passed to distrobox is unchanged.

Testing

cargo build --release clean, cargo test 5 pass (unchanged - no logic here), cargo fmt --check reports the same four pre-existing hunks as master and no new ones.

Checked before writing: Adds systemd support - ignore if you're not sure appears only in po/boxbuddy.pot and in none of the shipped .po files, so rewording it does not throw away a translation anyone has made. If you would rather keep the old string and put the missing half in the tooltip alone, that is a one-line change - say the word.

"Adds systemd support - ignore if you're not sure" leaves out the half
that catches people: `--init` also unshares the process namespace, so the
host's processes stop being visible inside the box. The toggle makes a box
more isolated, and it reads like it does the opposite - which is how it
gets switched on by someone trying to reach more of the host.

The subtitle now names both effects, and a tooltip says when the option is
wanted (services that run inside the box) and when it is not (using the
host's tools).

The old string is not translated in any shipped .po - only in the .pot -
so no translation is lost by rewording it.
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.

"Use init system" does not say that it hides the host's processes

1 participant