Skip to content

Start default machine shell as a login shell - #2042

Open
Dave861 wants to merge 1 commit into
apple:mainfrom
Dave861:fix/1991-machine-login-shell
Open

Start default machine shell as a login shell#2042
Dave861 wants to merge 1 commit into
apple:mainfrom
Dave861:fix/1991-machine-login-shell

Conversation

@Dave861

@Dave861 Dave861 commented Jul 30, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

container machine run documents its default behavior as starting a login shell, but the machine init helper invoked the resolved shell without its login option. As a result, startup files such as ~/.profile were not sourced.

Invoke the default shell with -l while leaving the explicit command path unchanged.

Fixes #1991.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Added a focused integration regression that verifies the default shell sources ~/.profile. Confirmed it failed before the change and passed afterward.

make check passes.

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.

[Request]: container machine run should spawn a login shell

1 participant