Update iso-image.nix to work with kernels that use AUFS 2.1 instead of AUFS 2. Older kernels are unaffected.
svn path=/nixos/trunk/; revision=26646
This commit is contained in:
parent
1e2c0d6284
commit
f269206972
@ -148,8 +148,10 @@ in
|
||||
# and aufs to make the root filesystem appear writable.
|
||||
boot.extraModulePackages =
|
||||
optional
|
||||
(! config.boot.kernelPackages.kernel.features ? aufs)
|
||||
config.boot.kernelPackages.aufs2;
|
||||
(! ( config.boot.kernelPackages.kernel.features ? aufs || config.boot.kernelPackages.kernel.features ? aufs2_1 ) )
|
||||
config.boot.kernelPackages.aufs2
|
||||
++ optional( config.boot.kernelPackages.kernel.features ? aufs2_1 )
|
||||
config.boot.kernelPackages.aufs2_1;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "aufs" "squashfs" "iso9660" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user