Skip to content

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented Sep 25, 2023

Instead of having firecracker-go-sdk hardlink files into the chroot for us, we now create the files directly in the chroot. This is required in order to use FUSE for the disk image files, since the SDK's hardlink attempt would fail as it crosses filesystem boundaries. It also results in simpler code - the current tempDir approach was purely working around the SDK's hardlinking behavior.

This requires patching the go SDK to skip hardlinking in the case where the file is already inside the chroot. I have sent firecracker-microvm/firecracker-go-sdk#510 to upstream the patch.

Related issues: N/A

@bduffany bduffany merged commit 63252df into master Sep 25, 2023
@bduffany bduffany deleted the fc-simplify-chroot branch September 25, 2023 19:48
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.

2 participants