From fbb3046a87b059647359cc91c101c3bc7e52ffeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 16 Jun 2010 13:58:15 +0000 Subject: [PATCH] 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 --- modules/installer/grub/grub-menu-builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/installer/grub/grub-menu-builder.sh b/modules/installer/grub/grub-menu-builder.sh index cf2041002e74..323ff43e85df 100644 --- a/modules/installer/grub/grub-menu-builder.sh +++ b/modules/installer/grub/grub-menu-builder.sh @@ -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