diff --git a/modules/installer/cd-dvd/iso-image.nix b/modules/installer/cd-dvd/iso-image.nix index e17dce4f71cc..3001eac35609 100644 --- a/modules/installer/cd-dvd/iso-image.nix +++ b/modules/installer/cd-dvd/iso-image.nix @@ -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" ];