Skip to content

feat: usr init program#139

Merged
AndreCostaaa merged 8 commits intomainfrom
138-feat-init-shell-program
Mar 28, 2025
Merged

feat: usr init program#139
AndreCostaaa merged 8 commits intomainfrom
138-feat-init-shell-program

Conversation

@AndreCostaaa
Copy link
Copy Markdown
Contributor

Like described in the related issue #138 this PR adds a simple init program that looks for a init_commands.txt and executes the commands it finds inside

Currently, there are 4 supported commands:

  • exit : Terminates the init process.
  • shell : Launches the shell (sh.elf).
  • echo : Prints arguments to stdout.
  • run : Executes an ELF binary specified by , along with any additional arguments provided.

There was also a small problem with the create_img script that tries to create a ext4 partition but this partition is not created and never used and it makes the script crash, at least in virtual configs, maybe it's used to setup a disk for rpi4 ? In that case i can wrap it around a test condition

@AndreCostaaa AndreCostaaa linked an issue Mar 28, 2025 that may be closed by this pull request
Comment thread usr/src/init.c Outdated
@AndreCostaaa AndreCostaaa merged commit 9fd2100 into main Mar 28, 2025
11 checks passed
@AndreCostaaa AndreCostaaa deleted the 138-feat-init-shell-program branch March 28, 2025 20:25
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.

feat: init shell program

2 participants