From a2156003355a0475161b5ba78ec718214ae7dc7c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 10 Apr 2013 15:08:21 -0400 Subject: [PATCH] nixos-install: Unmount efivars if mounted Signed-off-by: Shea Levy --- modules/installer/tools/nixos-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/installer/tools/nixos-install.sh b/modules/installer/tools/nixos-install.sh index de1cd7fb1b60..74e9170d1c59 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -58,6 +58,7 @@ cleanup() { mountpoint -q $mountPoint/etc/nixos && umount $mountPoint/etc/nixos mountpoint -q $mountPoint/etc && umount $mountPoint/etc umount $mountPoint/mnt2 + umount $mountPoint/sys/firmware/efi/efivars &>/dev/null || true umount $mountPoint/sys umount $mountPoint/proc umount $mountPoint/dev/shm