You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for the effort on the module, much appreciated!
I am fairly new to nixOS, just started a month ago and from the very beginning I wanted to setup my systems with impermanence - and now I am about to get it done - sooo close!
Now I
took my testsystems hardwareconfig and modified the mounts
added the impermanence module + config to the flake
ran nixos-rebuild --flake .#testvm build-vm
It builds the vm perfectly fine, but the boot fails in stage1 since its
"waiting for device /mnt-root/nix/persist/system/var/lib/nixos to appear"
and fails into:
"nixos failed: No such file or directory"
I dont know where the "mnt-root" comes from, I dont find it in my own config nor in your codebase here on github, so I am guessing thats coming from nixOS itself?
You'll see some mntroot mounts in my config, that is me stumbling around with that error message, I tried to align my config with the error message and had configured to mount to /mnt-root in the beginning.
But changed back to /mntroot later on.
So I figured the /nix/persist/system does not exist on a new system, I did some research and guess your #193 sounds promising.
But I am running on your master branch, so I wont know how to continue.
Ive tried to workaround that problem in the flake with:
Doesnt matter, it ends up in the same problem.
So my best guess is: build-vm is out of scope for your project?
Oh headsup, I am still on 24.05
edit:/ changed my flake inputs to 24.11 and came up with the same problem. sitenote: nix is great for being that quick making such changes :)
fileSystems."/" =
{ device = "none";
fsType = "tmpfs";
neededForBoot = true;
options = [ "size=200M" "mode=755" ]; # mode=755 so only root can write to those files
};
The text was updated successfully, but these errors were encountered:
vacy
changed the title
Q: impermanence with nixos-rebuild build-vm - is that supposed to fail and out of scope?
nixos-rebuild build-vm - fails with "waiting for device to appear"
Dec 23, 2024
Hello,
thank you for the effort on the module, much appreciated!
I am fairly new to nixOS, just started a month ago and from the very beginning I wanted to setup my systems with impermanence - and now I am about to get it done - sooo close!
Now I
It builds the vm perfectly fine, but the boot fails in stage1 since its
and fails into:
I dont know where the "mnt-root" comes from, I dont find it in my own config nor in your codebase here on github, so I am guessing thats coming from nixOS itself?
You'll see some mntroot mounts in my config, that is me stumbling around with that error message, I tried to align my config with the error message and had configured to mount to /mnt-root in the beginning.
But changed back to /mntroot later on.
So I figured the /nix/persist/system does not exist on a new system, I did some research and guess your #193 sounds promising.
But I am running on your master branch, so I wont know how to continue.
Ive tried to workaround that problem in the flake with:
Doesnt matter, it ends up in the same problem.
So my best guess is: build-vm is out of scope for your project?
Oh headsup, I am still on 24.05
edit:/ changed my flake inputs to 24.11 and came up with the same problem. sitenote: nix is great for being that quick making such changes :)
Config details:
flake
hardware config
The text was updated successfully, but these errors were encountered: