Work around 9P corruption on 32-bit

On 32-bit, Linux 3.4, and if the memory size is bigger than a certain
value, starting the stage 2 init script fails with "Exec format error"
because the 9P filesystem is returning garbage.  No such problem with
Linux 3.10.

http://hydra.nixos.org/build/5737226
This commit is contained in:
Eelco Dolstra 2013-08-21 15:10:40 +02:00
parent 02cba75610
commit 9a9b798939

View file

@ -175,7 +175,7 @@ in rec {
tests.api = genAttrs' (system: tests.api = genAttrs' (system:
with import <nixos/lib/testing.nix> { inherit system; }; with import <nixos/lib/testing.nix> { inherit system; };
let hydra = builtins.getAttr system build; in # build.${system} let hydra = builtins.getAttr system build; in # build."${system}"
simpleTest { simpleTest {
machine = machine =
{ config, pkgs, ... }: { config, pkgs, ... }:
@ -183,6 +183,7 @@ in rec {
services.postgresql.package = pkgs.postgresql92; services.postgresql.package = pkgs.postgresql92;
environment.systemPackages = [ hydra pkgs.perlPackages.LWP pkgs.perlPackages.JSON ]; environment.systemPackages = [ hydra pkgs.perlPackages.LWP pkgs.perlPackages.JSON ];
virtualisation.memorySize = 2047; virtualisation.memorySize = 2047;
boot.kernelPackages = pkgs.linuxPackages_3_10;
}; };
testScript = testScript =