summary refs log tree commit diff
path: root/nixos/tests/installer.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-30 14:51:27 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-30 15:07:34 +0200
commit437962ebb29208ae854a162b91723688295b3e9c (patch)
tree86bdd1697dfe6ef3bcc05962a953ed1592ff0c49 /nixos/tests/installer.nix
parent728d3476baa63c0d2b0a9be9d70db852ea7a2fd9 (diff)
downloadnixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar.gz
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar.bz2
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar.lz
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar.xz
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.tar.zst
nixpkgs-437962ebb29208ae854a162b91723688295b3e9c.zip
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.
Diffstat (limited to 'nixos/tests/installer.nix')
-rw-r--r--nixos/tests/installer.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 72665607149..b019882900d 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.