tinkerbell / tinkerbell/actions

[feature] cexec should grab the mountpoints using the metadata

Open
#166 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
37
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hello,

I want to run some commands in a chroot, however my installation configuration uses several mountpoints (such as /boot, /, /var/log…).
At the moment cexec uses only the given block device through environment.

I think that cexec could do something like: if BLOCK_DEVICE is empty, then use https://github.com/tinkerbell/actions/tree/main/rootio/storage to read the metadata and mount everything provided by the Hardware object..

This should keep compatibility with the actual behaviour.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cexec's current BLOCK_DEVICE handling, then inspect rootio/storage and how the Hardware object exposes metadata. Preserve the existing explicit-device behavior; when BLOCK_DEVICE is empty, completion means mounting every configured mountpoint before running commands in the chroot.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.