From 36f01930edcffa9075fee67facfcae1b5686ec0c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Mar 2007 20:28:09 +0000 Subject: [PATCH] * Take the target platform as a parameter. * Put the platform name in the name of the ISO image. svn path=/nixos/trunk/; revision=8364 --- configuration/rescue-cd.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration/rescue-cd.nix b/configuration/rescue-cd.nix index 1cbccf9ee330..4884c48168c7 100644 --- a/configuration/rescue-cd.nix +++ b/configuration/rescue-cd.nix @@ -1,3 +1,6 @@ +{ platform ? __currentSystem +}: + rec { @@ -77,7 +80,7 @@ rec { system = import ../system/system.nix { - inherit configuration; + inherit configuration platform; stage2Init = "/init"; }; @@ -139,7 +142,7 @@ rec { # init. rescueCD = import ../helpers/make-iso9660-image.nix { inherit (pkgs) stdenv perl cdrtools; - isoName = "nixos.iso"; + isoName = "nixos-${platform}.iso"; # Single files to be copied to fixed locations on the CD. contents = [