Skip to content

rebuild helper script does not work with the switch arg #335

@Ramblurr

Description

@Ramblurr

According to the docs, this should work:

nix run .#nixosConfigurations.my-microvm.config.microvm.deploy.rebuild [email protected] [email protected] switch

But when I run this I always get:

$ nix run .#nixosConfigurations.my-microvm.config.microvm.deploy.rebuild root@host root@target switch
Usage: /nix/store/kxrflcsnx1zayqaa389mn9zbfn9c3bby-microvm-rebuild/bin/microvm-rebuild root@<host> root@<target> [--use-remote-sudo] switch

Looking at the code, this makes sense, the conditional wrapping the "Usage" print will always trigger when "switch" is passed.

https://github.com/astro/microvm.nix/blob/d3a9b7504d420a1ffd7c83c1bb8fe57deaf939d2/nixos-modules/microvm/ssh-deploy.nix#L214-L240

Handling the "switch" isn't implemented AFAICT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions