* aufs2 -> aufs.

svn path=/nixos/trunk/; revision=30323
This commit is contained in:
Eelco Dolstra 2011-11-08 15:12:11 +00:00
parent 848485a043
commit 3e30d87c26
4 changed files with 7 additions and 12 deletions

View File

@ -154,15 +154,10 @@ in
# We need squashfs in the initrd to mount the compressed Nix store,
# and aufs to make the root filesystem appear writable.
boot.extraModulePackages =
let features = config.boot.kernelPackages.kernel.features; in
pkgs.stdenv.lib.singleton (if features ? aufs2 && features.aufs2 then
config.boot.kernelPackages.aufs2
else if features ? aufs2_1 && features.aufs2_1 then
config.boot.kernelPackages.aufs2_1
else if features ? aufs3 && features.aufs3 then
config.boot.kernelPackages.aufs3
else abort "This kernel doesn't have aufs enabled");
if config.boot.kernelPackages.aufs == null then
abort "This kernel doesn't have aufs enabled"
else
[ config.boot.kernelPackages.aufs ];
boot.initrd.availableKernelModules = [ "aufs" "squashfs" "iso9660" ];

View File

@ -71,7 +71,7 @@ with pkgs.lib;
boot.initrd.kernelModules = [ "xen-blkfront" "aufs" ];
boot.kernelModules = [ "xen-netfront" ];
boot.extraModulePackages = [ config.boot.kernelPackages.aufs2 ];
boot.extraModulePackages = [ config.boot.kernelPackages.aufs ];
# Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
boot.loader.grub.device = "nodev";

View File

@ -78,7 +78,7 @@ with pkgs.lib;
boot.initrd.kernelModules = [ "aufs" ];
boot.extraModulePackages = [ config.boot.kernelPackages.aufs2 ];
boot.extraModulePackages = [ config.boot.kernelPackages.aufs ];
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";

View File

@ -244,7 +244,7 @@ in
++ optional cfg.writableStore [ "aufs" ];
boot.extraModulePackages =
optional cfg.writableStore config.boot.kernelPackages.aufs2;
optional cfg.writableStore config.boot.kernelPackages.aufs;
boot.initrd.extraUtilsCommands =
''