nixos/install-grub: Check /boot against /nix/store instead of /nix

This commit is contained in:
William A. Kennington III 2014-07-13 09:50:45 -05:00
parent 36a47733a2
commit cf7f7a5107

View File

@ -60,7 +60,7 @@ mkpath("/boot/grub", 0, 0700);
# Discover whether /boot is on the same filesystem as / and
# /nix/store. If not, then all kernels and initrds must be copied to
# /boot.
if (stat("/boot")->dev != stat("/nix")->dev) {
if (stat("/boot")->dev != stat("/nix/store")->dev) {
$copyKernels = 1;
}