-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
--vm-test fails with ZFS on root after updating lock file #350
Comments
I've run into the same problem. Using a disko config I know worked on both the vm-test and actual hardware as of 2023-12-20 I'm now seeing the same error as shown above, with the critical error in logs being:
In particular, sgdisk does not seem to be doing the right thing, creating a partition at an unusual offset, which makes me think the test is improperly clearing the block device either in nixos-anywhere or disko itself, or something has changed in the behavior of sgdisk (which updated from 1.0.9 to 1.0.10 in this commit NixOS/nixpkgs#297099 ) I'm working on trying to isolate the chain of nixos-anywhere, disko, and gptfdisk to figure out what actually broke. |
I have a configuration based on
nixos-anywhere-examples
here with the only things I've changed being:systemd-boot
.nixosConfigurations.vm
(the same ashetzner-cloud
but withdisko.devices.disk.disk1.device = "/dev/vda";
to use in QEMU).With the configuration as-is,
nix run github:nix-community/nixos-anywhere -- --flake "path:.#vm" --vm-test
succeeds and installing it in a QEMU guest withnix run github:nix-community/nixos-anywhere -- --flake "path:.#vm" root@<ip>
also works.However, after updating the lock file with
nix flake update
this is not the case. Running the update command will updateflake.lock
like so.Running the command with
--vm-test
now will result in a failure. The error output is the following.It is worth noting that installing on the same QEMU guest with the
root@<ip>
command still works with no errors and the guest successfully boots after the installation. Only running with--vm-test
has this issue.The text was updated successfully, but these errors were encountered: