Making the grub menu builder take a better path at distinguishing if / and /boot are different fs.

I chose %D over %d because I like hex more.


svn path=/nixos/trunk/; revision=22294
This commit is contained in:
Lluís Batlle i Rossell 2010-06-16 13:58:15 +00:00
parent d0fd8da8f0
commit fbb3046a87

View File

@ -30,7 +30,7 @@ esac
# the GRUB config file must be relative to the root of the /boot
# filesystem. `$bootRoot' is the path to be prepended to paths under
# /boot.
if [ "$(stat -f -c '%i' /)" = "$(stat -f -c '%i' /boot)" ]; then
if [ "$(stat -f -c '%D' /)" = "$(stat -f -c '%D' /boot)" ]; then
bootRoot=/boot
copyKernels="@copyKernels@" # user can override in the NixOS config
else