Skip to content

feat(linux): Boot hull's root through /init, urunit eddeae7 - #3

Merged
ananos merged 2 commits into
brigfrom
feat/hull-boots-init
Dec 1, 2026
Merged

ananos merged 2 commits into
brigfrom
feat/hull-boots-init

Conversation

@ananos

@ananos ananos commented Dec 1, 2026

Copy link
Copy Markdown

Summary

urunit's nofire tip, eddeae7, has a single early init. /vz-init, which took the virtiofs tag rootfs with no root= and put an overlay over it by default, is gone.

  • feat(linux): hull's container boots on macOS start rdinit=/init like every other host. A virtiofs root is named as root=rootfs rootfstype=virtiofs; hull asks for the overlay with /urunc-overlay when its share is read-only. An overlay-block root still names no root, since /urunc-rootfs-lower does that. The boot initrd drops its vz-init link, and the guest-init design doc now describes the single init.
  • chore(initrd): urunit.pin moves to eddeae7.

hull has to write the markers eddeae7 reads: /urunc-overlay for Vz's read-only share, nothing for hvi's writable clone (eddeae7 no longer reads /urunc-rootfs-direct), and overlay-block as 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/..., and go test for pkg/unikontainers/..., all pass. The darwin test now expects rdinit=/init root=rootfs rootfstype=virtiofs, and a new overlay-block case expects no root=.
  • make test_urunit against the urunit this pin builds (no vz-init left in the binary): 21 passed as a plain user, 23 as root.

Boots on macOS come with hull#177.

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>
@ananos
ananos merged commit 4b4e8a7 into brig Dec 1, 2026
1 check failed
@ananos
ananos deleted the feat/hull-boots-init branch December 2, 2026 13:58
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