From 3137cb5c5931d3e674201cd68fdf2acef5b1842a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Oct 2010 16:04:04 +0000 Subject: [PATCH] * Apply some fixes to the xendomains script. svn path=/nixpkgs/trunk/; revision=24120 --- pkgs/applications/virtualization/xen/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/virtualization/xen/default.nix b/pkgs/applications/virtualization/xen/default.nix index 04c53dec8a5..b7a7d1ed31f 100644 --- a/pkgs/applications/virtualization/xen/default.nix +++ b/pkgs/applications/virtualization/xen/default.nix @@ -90,6 +90,12 @@ stdenv.mkDerivation { substituteInPlace tools/python/xen/remus/device.py \ --replace /usr/lib/xen/bin/imqebt $out/${libDir}/xen/bin/imqebt + # Allow the location of the xendomains config file to be + # overriden at runtime. + substituteInPlace tools/hotplug/Linux/init.d/xendomains \ + --replace 'XENDOM_CONFIG=/etc/sysconfig/xendomains' "" \ + --replace /bin/ls ls + # Xen's stubdoms need various sources that it usually fetches at # build time using wget. We can't have that. ${flip concatMapStrings stubdomSrcs (x: let src = fetchurl x; in ''