From 437962ebb29208ae854a162b91723688295b3e9c Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Wed, 30 Apr 2014 14:51:27 +0200
Subject: [PATCH] Installer test: Unmount filesystems after installation

Hopefully fixes failures like:

  http://hydra.nixos.org/build/10712833

This shouldn't be necessary, but it might be that the use of unionfs
is interfering with a clean shutdown.
---
 nixos/tests/installer.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 726656071496..b019882900dc 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -165,6 +165,10 @@ let
       # Do it again to make sure it's idempotent.
       $machine->succeed("nixos-install >&2");
 
+      $machine->succeed("umount /mnt/boot || true");
+      $machine->succeed("umount /mnt");
+      $machine->succeed("sync");
+
       $machine->shutdown;
 
       # Now see if we can boot the installation.