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

Create initrd as a rootfs for Unikraft #4

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Create initrd as a rootfs for Unikraft #4

merged 3 commits into from
Jan 17, 2025

Conversation

cmainas
Copy link
Collaborator

@cmainas cmainas commented Jan 14, 2025

Introduce support for creating an initrd for Unikraft, when the user specifies the from value of rootfs as scratch or leaves it empty. In that case, if the user specifies files in the include field, bunny will copy these files inside a new container and it will create an initrd inside this container.

Currently, we were only able to copy files in the final image only from
the build context of the client. However, in the future, we want to be
able and copy files from other images or states. For that purpose, we
create a new struct to keep all the necessary information for a copy,
such as the source state, and the source, destination path.

Signed-off-by: Charalampos Mainas <[email protected]>
Add support for building an initrd for Unikraft with the information in
the rootfs section of the bunnyfile. If the from field is empty or
scratch, then bunny will create a initrd with the files specified in the
include field of rootfs.

Furthermore, add checks regarding the input values of some fields in the
bunnyfile.

Signed-off-by: Charalampos Mainas <[email protected]>
Update the README file of the repository providing information regarding
the changes in the rootfs field of bunnyFile.

ALso provide an example to showcase the  new feature.

Signed-off-by: Charalampos Mainas <[email protected]>
@cmainas cmainas merged commit 516aba0 into main Jan 17, 2025
3 checks passed
@cmainas cmainas deleted the create_initrd branch January 17, 2025 16:36
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