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

Omitting disko phase still requires me to define a disko script #879

Closed
jtara1 opened this issue Nov 14, 2024 · 4 comments
Closed

Omitting disko phase still requires me to define a disko script #879

jtara1 opened this issue Nov 14, 2024 · 4 comments
Labels
invalid This is not an issue with disko

Comments

@jtara1
Copy link

jtara1 commented Nov 14, 2024

command and error

host=my_host
ip=192.168.1.100

nix run github:nix-community/nixos-anywhere -- --phases kexec,install,reboot --flake .#$host root@$ip

error: flake 'git+file:///home/j/nixcfg' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."my_host".config.system.build.diskoScript', 'legacyPackages.x86_64-linux.nixosConfigurations."my_host".config.system.build.diskoScript' or 'nixosConfigurations."my_host".config.system.build.diskoScript'

I want to do my own partitioning. I mount new target for install to /mnt and /mnt/boot as per nixos defaults.

Am I breaking things trying to remove the disko phase?

@Mic92
Copy link
Member

Mic92 commented Nov 14, 2024

I think you need to provide some own logic anyway if you also do kexec. Otherwise you boot into a new machine that doesn't have anything mounted. We should probably not build disko if we omit the disko phase. But than you would need to do first the kexec part only, followed by your own manual partitioning and than install + reboot.

@Mic92
Copy link
Member

Mic92 commented Nov 14, 2024

@jtara1
Copy link
Author

jtara1 commented Nov 17, 2024

I quickly tested this installing to a virtual machine and I'm not getting the same error now, thanks. I thought I had opened this issue in nixos-anywhere, guess not.

@iFreilicht
Copy link
Contributor

I'll close this now, as the PR that fixes this has been merged.

@iFreilicht iFreilicht added the invalid This is not an issue with disko label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This is not an issue with disko
Projects
None yet
Development

No branches or pull requests

3 participants