3
0
Fork 0
forked from mirrors/nixpkgs

* Mount /proc/xen.

svn path=/nixos/trunk/; revision=23741
This commit is contained in:
Eelco Dolstra 2010-09-12 22:56:54 +00:00
parent 987dd76811
commit 6b2844c6b2

View file

@ -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
'';
};
}