Author: viric
Date: 2010-06-16 13:58:15 +0000 (Wed, 16 Jun 2010)
New Revision: 22294

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22294&view=rev

Modified:
   nixos/trunk/modules/installer/grub/grub-menu-builder.sh

Log:
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.



Changes:

Modified: nixos/trunk/modules/installer/grub/grub-menu-builder.sh
===================================================================
--- nixos/trunk/modules/installer/grub/grub-menu-builder.sh     2010-06-16 
12:39:19 UTC (rev 22293)
+++ nixos/trunk/modules/installer/grub/grub-menu-builder.sh     2010-06-16 
13:58:15 UTC (rev 22294)
@@ -30,7 +30,7 @@
 # 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

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to