Cross arch deployments are broken #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Arcana reads the
config.deployment.activationProgramattribute from the target config to know which deployment server to start on the deployer.By naively setting
deployment.activationProgram = pkgs.[...], this results in the deployment server for the target architecture being called.In my case, deploying an x86_64-linux microvm target from an aarch64-linux laptop:
It tries to start the x86_64-linux microvm server on my laptop, which doesn't exist (and even if it did exist, it would be the wrong architecture).
Resolving this mismatch is more difficult than expected, because there is no way to inject a
deployerPkgsinto the target configuration in flakes. It is intended in flakes, that properties of the target configuration can not evaluate to different values depending on the deployer who evaluates them.For this, I suggest to make activationProgram a function which is called with the deployer architecture / packageset to inject the deployer architecture:
Or, if we want to go flakes-style, make it an attribute set with the supported deployer architectures