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

Add NixOS support #52

Open
nothingnesses opened this issue Sep 21, 2021 · 1 comment
Open

Add NixOS support #52

nothingnesses opened this issue Sep 21, 2021 · 1 comment

Comments

@nothingnesses
Copy link

Support for NixOS would be nice. I tried using the generic loopback.cfg but it didn't work properly as the OS was expecting a certain directory hierarchy which wasn't present. To make this work, I guess the cfg would have to somehow let the OS know where to find the directories it expects. Hopefully someone smarter than me can figure out how to do this.

@xfnw
Copy link

xfnw commented Nov 18, 2021

i managed to get it to boot from the generic loopback with some changes:

nixos seems to depend on the bootloader knowing some stuff about which derivation to boot to via kernal parameters, you need to copy the init= kernel parameter of /isolinux/isolinux.cfg from the iso into bootoptions, which is different for every new nixos iso because of the store's hashes

linux can be set to (loop)/boot/bzImage $bootoptions, and initrd to (loop)/boot/initrd

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

2 participants