From 6a1e1fa108f9ccf0d9ce27cfaa8102288b3504e5 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 10 Apr 2013 09:15:54 -0400 Subject: [PATCH] nixos-install: Bind-mount efivars if it exists 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 15c101216363..de1cd7fb1b60 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -48,6 +48,7 @@ mount --bind /dev $mountPoint/dev mount --bind /dev/shm $mountPoint/dev/shm mount --bind /proc $mountPoint/proc mount --bind /sys $mountPoint/sys +mount --bind /sys/firmware/efi/efivars $mountPoint/sys/firmware/efi/efivars &>/dev/null || true mount --bind $mountPoint/etc/nixos $mountPoint/mnt2 mount --bind /etc $mountPoint/etc mount --bind $mountPoint/mnt2 $mountPoint/etc/nixos