Skip to content

feat: add custom home mount path support for container machines#1714

Open
Jonathan5643 wants to merge 1 commit into
apple:mainfrom
Jonathan5643:custom-mount
Open

feat: add custom home mount path support for container machines#1714
Jonathan5643 wants to merge 1 commit into
apple:mainfrom
Jonathan5643:custom-mount

Conversation

@Jonathan5643

Copy link
Copy Markdown

Type of Change

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

Motivation and Context

Add a new homeMountPath field to MachineConfig, allowing users to customize the host directory mounted as the home directory in container machines.

The homeMount option only controls the mount mode (ro/rw/none) for the user's home directory, but provides no way to mount a different host directory. This change adds a homeMountPath property that lets users specify which host directory to mount, with the existing home directory as the default when unset.

Users can configure the custom mount path through two entry points:

  • container machine create --home-mount-path <path>
  • container machine set home-mount-path=<path>

Testing

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

Add a new homeMountPath field to MachineConfig, allowing users to
customize the host directory mounted as the home directory in
container machines.

- MachineConfig: homeMountPath: String with defaultHomeMountPath
- MachineCreate: new --home-mount-path CLI flag
- MachinesService: passes through and uses custom path at boot

This enables:
  container machine create --home-mount-path /custom/path ...
  container machine set home-mount-path=/custom/path
  [machine] homeMountPath = "/custom/path" in config.toml
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