nixos/install-grub: Check /boot against /nix/store instead of /nix
This commit is contained in:
parent
36a47733a2
commit
cf7f7a5107
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user