mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* aufs2 -> aufs.
svn path=/nixos/trunk/; revision=30323
This commit is contained in:
parent
848485a043
commit
3e30d87c26
@ -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" ];
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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 =
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user