[Nix-dev] Re: [Nix-commits] SVN commit: nix - 22294 - viric - nixos/trunk/modules/installer/grub

David Brown nix at davidb.org
Wed Jun 16 16:54:30 CEST 2010


On Wed, Jun 16, 2010 at 01:58:15PM +0000, Llus Batlle wrote:

> # 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

For me, "stat -f -c '%D' /", seems to just print a single question
mark.  Did you mean to also remove the '-f' option?

David



More information about the nix-dev mailing list