Skip to content
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

Can't overwrite NixOS installation USB drive? #284

Open
axelsimon opened this issue Feb 25, 2024 · 1 comment
Open

Can't overwrite NixOS installation USB drive? #284

axelsimon opened this issue Feb 25, 2024 · 1 comment

Comments

@axelsimon
Copy link

I'm trying to install NixOS using nixos-anywhere to a single-board computer booted with:

As far as I understand, this fits the requirements.

I run nix run github:nix-community/nixos-anywhere -- --disk-encryption-keys /tmp/secret.key <(pass computers/my-sbc/LUKS) --flake '.#my-sbc' root@my-sbc which starts running fine and starts configuring disks with disko but fails at this step.

One one hand, i get that this is attempting to saw the branch i'm sitting on. I can see in the logs:

+ umount -R /iso
umount: /iso: target is busy.

while mount shows: /dev/sda on /iso type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)

Finally we hit:

mkfs.vfat: unable to open /dev/disk/by-partlabel/disk-usb-drive-ESP: Device or resource busy

But on the other hand, i thought this was the point: boot an install medium, get ssh going, start installing.

Does this mean you really need two drives to run nixos-anywhere, one to boot the installation image, and one as the target drive? Or am i just missing something?

@axelsimon
Copy link
Author

Just saw that the "system requirement" mention "Nixos-anywhere does not support wifi networks." is that actually true? In this case, the SBC is reachable over wifi but SSH works fine, which meets the requirement just before the wifi line: "The machine must be reachable over the public internet or local network." Not sure it would have anything to do with the issue at hand, but i'd rather be transparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant