On Wed, Feb 29, 2012 at 10:46:49AM +0100, Lluís Batlle i Rossell wrote: > On Wed, Feb 29, 2012 at 09:38:59AM +0100, Lluís Batlle i Rossell wrote: > > How can it be that btrfs alone does not work then? (I've not investigated > > this > > though) > > > > # modprobe --show-depends btrfs > > insmod > > /nix/store/xqzg0icd5qgmqs70w0xga2c9r1rxik8i-kernel-modules/lib/modules/3.2.7/kernel/lib/libcrc32c.ko > > > > insmod > > /nix/store/xqzg0icd5qgmqs70w0xga2c9r1rxik8i-kernel-modules/lib/modules/3.2.7/kernel/lib/zlib_deflate/zlib_deflate.ko > > > > insmod > > /nix/store/xqzg0icd5qgmqs70w0xga2c9r1rxik8i-kernel-modules/lib/modules/3.2.7/kernel/fs/btrfs/btrfs.ko > > > > > > > > I've seen crc32c loaded when I load btrfs, but I don't know if it was there > > before loading btrfs. > > > > # modprobe --show-depends crc32c > > insmod > > /nix/store/xqzg0icd5qgmqs70w0xga2c9r1rxik8i-kernel-modules/lib/modules/3.2.7/kernel/crypto/crc32c.ko > > > > > Ok, I checked, and the initrfs properly includes the dependencies of 'btrfs', > but does not include crc32c. Including crc32c makes btrfs work (for what I > remember). > > Why isn't crc32c a depdency of btrfs? I'll ask at #btrfs.
At #btrfs, 'kdave' said that libcrc32c is the correct dependency, and the implementation of the crc32 calculation algorithm is *dynamically* guessed depending on the CPU, and thus cannot appear as a dependency of btrfs. Hence "btrfs" is not enough in the boot.initrd.kernelModules. Regards, Lluís. _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
