forked from mirrors/nixpkgs
linux: remove xen_dom0 feature entirely
Xen is now enabled unconditionally on kernels that support it, so the xen_dom0 feature doesn't do anything. The isXen attribute will now produce a deprecation warning and unconditionally return true. Passing in a custom value for isXen is no longer supported.
This commit is contained in:
parent
f310134dec
commit
25208eeaba
|
@ -161,9 +161,6 @@ in
|
|||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
# Make sure Domain 0 gets the required configuration
|
||||
#boot.kernelPackages = pkgs.boot.kernelPackages.override { features={xen_dom0=true;}; };
|
||||
|
||||
boot.kernelModules =
|
||||
[ "xen-evtchn" "xen-gntdev" "xen-gntalloc" "xen-blkback" "xen-netback"
|
||||
"xen-pciback" "evtchn" "gntdev" "netbk" "blkbk" "xen-scsibk"
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
stdenv.hostPlatform != stdenv.buildPlatform
|
||||
, extraMeta ? {}
|
||||
|
||||
, isXen ? features.xen_dom0 or false
|
||||
, isZen ? false
|
||||
, isLibre ? false
|
||||
, isHardened ? false
|
||||
|
@ -74,7 +73,6 @@ let
|
|||
needsCifsUtils = true;
|
||||
netfilterRPFilter = true;
|
||||
grsecurity = false;
|
||||
xen_dom0 = false;
|
||||
ia32Emulation = true;
|
||||
} // features) kernelPatches;
|
||||
|
||||
|
@ -178,7 +176,8 @@ let
|
|||
|
||||
passthru = {
|
||||
features = kernelFeatures;
|
||||
inherit commonStructuredConfig isXen isZen isHardened isLibre;
|
||||
inherit commonStructuredConfig isZen isHardened isLibre;
|
||||
isXen = lib.warn "The isXen attribute is deprecated. All Nixpkgs kernels that support it now have Xen enabled." true;
|
||||
kernelOlder = lib.versionOlder version;
|
||||
kernelAtLeast = lib.versionAtLeast version;
|
||||
passthru = kernel.passthru // (removeAttrs passthru [ "passthru" ]);
|
||||
|
|
|
@ -37,7 +37,6 @@ in {
|
|||
extraMeta ? {},
|
||||
|
||||
# for module compatibility
|
||||
isXen ? features.xen_dom0 or false,
|
||||
isZen ? false,
|
||||
isLibre ? false,
|
||||
isHardened ? false,
|
||||
|
@ -94,7 +93,8 @@ let
|
|||
passthru = {
|
||||
inherit version modDirVersion config kernelPatches configfile
|
||||
moduleBuildDependencies stdenv;
|
||||
inherit isXen isZen isHardened isLibre;
|
||||
inherit isZen isHardened isLibre;
|
||||
isXen = lib.warn "The isXen attribute is deprecated. All Nixpkgs kernels that support it now have Xen enabled." true;
|
||||
kernelOlder = lib.versionOlder version;
|
||||
kernelAtLeast = lib.versionAtLeast version;
|
||||
};
|
||||
|
|
|
@ -19777,7 +19777,7 @@ in
|
|||
inherit (kernel) stdenv; # in particular, use the same compiler by default
|
||||
|
||||
# to help determine module compatibility
|
||||
inherit (kernel) isXen isZen isHardened isLibre;
|
||||
inherit (kernel) isZen isHardened isLibre;
|
||||
inherit (kernel) kernelOlder kernelAtLeast;
|
||||
|
||||
# Obsolete aliases (these packages do not depend on the kernel).
|
||||
|
|
Loading…
Reference in a new issue