[Nix-dev] Re: [Nix-commits] SVN commit: nix - 19009 - MarcWeber - in nixos/trunk/modules: . installer installer/init-script system/activation

Eelco Dolstra e.dolstra at tudelft.nl
Thu Dec 17 13:33:38 CET 2009


Hi,

Marc Weber wrote:

Another issue:

> --- nixos/trunk/modules/system/activation/switch-to-configuration.sh	2009-12-16 23:59:05 UTC (rev 19008)
> +++ nixos/trunk/modules/system/activation/switch-to-configuration.sh	2009-12-17 06:04:36 UTC (rev 19009)
> @@ -49,6 +49,8 @@
>      else
>            echo "Warning: don't know how to make this configuration bootable; please enable a boot loader." 1>&2
>      fi
> +
> +    @initScriptBuilder@ @out@

This line breaks switch-to-configuration.sh in the case where
boot.loader.initScript.enable is false, because it will expand to something like

  /nix/store/wxasvjh63rbx9d504b7kzv57hr8z51dc-system

and the script will fail:

# nixos-rebuild switch --fast
building the system configuration...
trace: deprecated usage of mapRecordFlatten, use mapAttrsFlatten instead
updating GRUB 2 menu...
/nix/var/nix/profiles/system/bin/switch-to-configuration: line 53:
/nix/store/wxasvjh63rbx9d504b7kzv57hr8z51dc-system: is a directory

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list