From 6b2844c6b241b6f64746c4c42ace7910d247baed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 12 Sep 2010 22:56:54 +0000 Subject: [PATCH] * Mount /proc/xen. svn path=/nixos/trunk/; revision=23741 --- modules/virtualisation/xen.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/virtualisation/xen.nix b/modules/virtualisation/xen.nix index 5e8bb902b2a7..b2218fb3fddd 100644 --- a/modules/virtualisation/xen.nix +++ b/modules/virtualisation/xen.nix @@ -71,6 +71,15 @@ let cfg = config.virtualisation.xen; in echo "${toString cfg.bootParams}" > $out/xen-params ''; + # Mount the /proc/xen pseudo-filesystem. + system.activationScripts.xen = noDepEntry + '' + if [ -d /proc/xen ]; then + ${pkgs.sysvtools}/bin/mountpoint -q /proc/xen || \ + ${pkgs.utillinux}/bin/mount -t xenfs none /proc/xen + fi + ''; + }; }