Repository navigation
feat(linux): Boot hull's root through /init, urunit eddeae7 - #3
Merged
Merged
Conversation
urunit has one early init now. /vz-init, which took the virtiofs tag rootfs with no root= and put an overlay over it by default, is gone. hull's container boots on macOS start rdinit=/init like every other host, and a virtiofs root is named as root=rootfs rootfstype=virtiofs. hull asks for the overlay with /urunc-overlay when the share is read-only. An overlay-block root still names no root, since /urunc-rootfs-lower does. The boot initrd drops its vz-init link, and the guest-init design doc describes the one init. Signed-off-by: Anastassios Nanos <ananos@nofire.ai>
eddeae7 drops vz-init and runs one early init, /init, on every host. The root is named by /urunc-rootfs-lower, by root= on the kernel command line, or for hull's block rootfs by hull's files and /dev/vda. /urunc-rootfs-direct is no longer read, and a failed overlay ends the boot instead of falling back to a direct mount. Signed-off-by: Anastassios Nanos <ananos@nofire.ai>
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
urunit's
nofiretip, eddeae7, has a single early init./vz-init, which took the virtiofs tagrootfswith noroot=and put an overlay over it by default, is gone.feat(linux): hull's container boots on macOS startrdinit=/initlike every other host. A virtiofs root is named asroot=rootfs rootfstype=virtiofs; hull asks for the overlay with/urunc-overlaywhen its share is read-only. An overlay-block root still names no root, since/urunc-rootfs-lowerdoes that. The boot initrd drops itsvz-initlink, and the guest-init design doc now describes the single init.chore(initrd):urunit.pinmoves to eddeae7.hull has to write the markers eddeae7 reads:
/urunc-overlayfor Vz's read-only share, nothing for hvi's writable clone (eddeae7 no longer reads/urunc-rootfs-direct), andoverlay-blockas the root type for that mode. That change goes into brig-sh/hull#177 together with the pin.Testing
On nofire (x86_64, go 1.27.3):
go vet ./pkg/..., andgo testforpkg/unikontainers/..., all pass. The darwin test now expectsrdinit=/init root=rootfs rootfstype=virtiofs, and a new overlay-block case expects noroot=.make test_urunitagainst the urunit this pin builds (novz-initleft in the binary): 21 passed as a plain user, 23 as root.Boots on macOS come with hull#177.