-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update unikernel with new build from builds.robur.coop #105
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks fine. I have not tried to review the javascript changes, and I may be missing context.
match | ||
(req_only_bridges, mft_only_bridges, req_only_blocks, mft_only_blocks) | ||
with | ||
| [], [], [], [] -> Ok () | ||
| req_only_bridges, [], [], [] -> | ||
Error | ||
(`Msg | ||
("Network devices missing from manifest: " | ||
^ String.concat "," req_only_bridges)) | ||
| [], mft_only_bridges, [], [] -> | ||
Error | ||
(`Msg | ||
("Network devices only in manifest: " | ||
^ String.concat "," mft_only_bridges)) | ||
| [], [], req_only_blocks, [] -> | ||
Error | ||
(`Msg | ||
("Block devices missing from manifest: " | ||
^ String.concat "," req_only_blocks)) | ||
| [], [], [], mft_only_blocks -> | ||
Error | ||
(`Msg | ||
("Block devices only in manifest: " | ||
^ String.concat "," mft_only_blocks)) | ||
| req_only_bridges, req_only_blocks, [], [] -> | ||
Error | ||
(`Msg | ||
("Network devices missing from manifest: " | ||
^ String.concat "," req_only_bridges | ||
^ " and block devices missing from manifest: " | ||
^ String.concat "," req_only_blocks)) | ||
| [], req_only_blocks, mft_only_bridges, [] -> | ||
Error | ||
(`Msg | ||
("Network devices only in manifest: " | ||
^ String.concat "," mft_only_bridges | ||
^ " and block devices missing from manifest: " | ||
^ String.concat "," req_only_blocks)) | ||
| [], [], mft_only_blocks, req_only_bridges -> | ||
Error | ||
(`Msg | ||
("Network devices missing from manifest: " | ||
^ String.concat "," req_only_bridges | ||
^ " and block devices only in manifest: " | ||
^ String.concat "," mft_only_blocks)) | ||
| req_only_bridges, [], mft_only_blocks, [] -> | ||
Error | ||
(`Msg | ||
("Network devices missing from manifest: " | ||
^ String.concat "," req_only_bridges | ||
^ " and block devices only in manifest: " | ||
^ String.concat "," mft_only_blocks)) | ||
| req_only_bridges, req_only_blocks, mft_only_bridges, mft_only_blocks -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be refactored (e.g. "_ devices missing from manifest", "_ devices only in manifest"), that is, factor out the device type.
… for users to update if needed
I (Reynir) intend to release a new version of solo5-elftool that doesn't depend on owee. In the meantime we pin our owee fork that doesn't depend on Unix.
While this is very inefficient it is only temporary until changes to ocaml-solo5-elftool are merged and released.
This PR is a continuation of the work started in #102 and is related to #54
In this PR, we :
args
passed in the config to albatrossif everything checks out, then we pass this binary to albatross to perform the update.