multibootusb icon indicating copy to clipboard operation
multibootusb copied to clipboard

Add NixOS support

Open nothingnesses opened this issue 4 years ago • 1 comments

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.

nothingnesses avatar Sep 21 '21 10:09 nothingnesses

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

xfnw avatar Nov 18 '21 18:11 xfnw