On Tue, Feb 28, 2012 at 10:41:28PM +0000, Bryce L Nordgren wrote: > On Sat, Feb 25, 2012 at 7:33 PM, Bryce L Nordgren <[email protected]>wrote: > > > > > Can you give it a try and report back here (don't forget to cc nix-dev)? > > > > > The patch didn't work as it stood. The modprobe line immediately before the > "btrfs device scan" line is required. Note that I tried adding btrfs to > boot.initrd.kernelModules as well as boot.kernelModules, and still the > modprobe is required. After applying your patch, I added one line, as > follows:
Adding only "btrfs" will fail; I've had to add [ "btrfs" "zlib_deflate" "libcrc32c" "crc32c" ] to the boot.initrd for btrfs to load fine. I've root on btrfs, so I can't wait for stage2. I also run btrfs device scan in the initrd. (postDeviceCommands), after having copied it to the initrd (extraUtilsCommands). The same for its fsck. > I do have a question, though: if boot.kernelModules is set in > hardware-configuration.nix and in configuration.nix, which takes > precedence? I've been editing the one in configuration.nix to no avail. I don't use hardware-configuration.nix, but every option defines how to be merged once there are multiple definitions in different nixos modules. With some defaults: lists concatenate, etc etc. Regards, Lluís _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
