Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to execute a large set of privileged commands on machine initialization #93

Closed
5 tasks done
edubart opened this issue Jul 4, 2023 · 0 comments · Fixed by #140
Closed
5 tasks done
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@edubart
Copy link
Contributor

edubart commented Jul 4, 2023

Context

Some command line options need to execute custom commands as root on boot, such as mounting a flash drive, initializing clock date and time, and initializing network. This feature is needed in the context of Hypervisor to boot hypervisor VMs, also in the context of VirtIO to properly initialize its drivers.

There is also a second problem about the limit of characters in the dapp command line that we must solve, because currently we cannot have a command line with more than ~4096 characters.

Possible solutions

We can either use an extra flash drive for supplying the commands or build them directly in the FDT.

Definitions of Done

  • Add new command line option to execute large sequence of commands (or shell script) as root user
  • Add new command line option to execute large sequence of commands (or shell script) as dapp user
  • Make sure command line option can work with large amount of characters
  • Simplify init script from tools, move some of its init to emulator, to make them optional
  • Add options to suppress some initialization features currently always done in init, such as mounting flash drives
@edubart edubart added the enhancement New feature or request label Jul 4, 2023
@edubart edubart added this to the v0.16.0 milestone Jul 4, 2023
@edubart edubart self-assigned this Jul 4, 2023
@edubart edubart changed the title Add a way to execute a large set of commands as root on machine initialization Add a way to execute a large set of privileged commands on machine initialization Jul 4, 2023
@edubart edubart moved this from Todo to In Progress in Machine Emulator SDK Jul 12, 2023
@edubart edubart moved this from In Progress to PR Available in Machine Emulator SDK Aug 14, 2023
@edubart edubart mentioned this issue Oct 5, 2023
@edubart edubart linked a pull request Oct 5, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from PR Available to Done in Machine Emulator SDK Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant