Allow vmz run without initrd #40

Open
rc wants to merge 1 commit from codex-fix-run-without-initrd into main
Owner

Fixes #18.

Summary:

  • Make VMZConfig.initrd_path nullable and document NULL as booting without an initrd.
  • Let the Swift bridge leave VZLinuxBootLoader.initialRamdiskURL unset when no initrd is provided.
  • Make vmz.Config.initrd_path optional and pass null through the C bridge.
  • Stop requiring --initrd in vmz run; update run --help text.

Verification:

  • nix develop --command zig fmt src/vmz.zig src/cmd_run.zig
  • nix develop --command zig build
  • ./zig-out/bin/vmz run --kernel /tmp/vmz-missing-kernel --no-raw-terminal now reaches VM startup/configuration handling instead of returning InvalidArguments.
  • ./zig-out/bin/vmz run --help
  • ./zig-out/bin/vmz run still reports InvalidArguments when --kernel is missing.
Fixes #18. Summary: - Make `VMZConfig.initrd_path` nullable and document `NULL` as booting without an initrd. - Let the Swift bridge leave `VZLinuxBootLoader.initialRamdiskURL` unset when no initrd is provided. - Make `vmz.Config.initrd_path` optional and pass null through the C bridge. - Stop requiring `--initrd` in `vmz run`; update `run --help` text. Verification: - `nix develop --command zig fmt src/vmz.zig src/cmd_run.zig` - `nix develop --command zig build` - `./zig-out/bin/vmz run --kernel /tmp/vmz-missing-kernel --no-raw-terminal` now reaches VM startup/configuration handling instead of returning `InvalidArguments`. - `./zig-out/bin/vmz run --help` - `./zig-out/bin/vmz run` still reports `InvalidArguments` when `--kernel` is missing.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex-fix-run-without-initrd:codex-fix-run-without-initrd
git switch codex-fix-run-without-initrd

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff codex-fix-run-without-initrd
git switch codex-fix-run-without-initrd
git rebase main
git switch main
git merge --ff-only codex-fix-run-without-initrd
git switch codex-fix-run-without-initrd
git rebase main
git switch main
git merge --no-ff codex-fix-run-without-initrd
git switch main
git merge --squash codex-fix-run-without-initrd
git switch main
git merge --ff-only codex-fix-run-without-initrd
git switch main
git merge codex-fix-run-without-initrd
git push origin main
Sign in to join this conversation.
No reviewers
No labels
highprio
lowprio
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rc/vmz!40
No description provided.