From ea41e46e6dc66ac30aa767ff4b4d27138597aa5b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 5 Feb 2007 16:52:13 +0000 Subject: [PATCH] * Unpack the NixOS/Nixpkgs sources automatically when booting from the installation CD. svn path=/nixos/trunk/; revision=7847 --- configuration/rescue-cd.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configuration/rescue-cd.nix b/configuration/rescue-cd.nix index 27a906716a8..4011191ab66 100644 --- a/configuration/rescue-cd.nix +++ b/configuration/rescue-cd.nix @@ -26,9 +26,23 @@ rec { enable = false; }; - # Allow the user to do something useful on tty8 while waiting - # for the installation to finish. extraJobs = [ + # Unpack the NixOS/Nixpkgs sources to /etc/nixos. + { name = "unpack-sources"; + job = " + start on startup + script + mkdir -p /etc/nixos/nixos + tar xjf /nixos.tar.bz2 -C /etc/nixos/nixos + tar xjf /nixpkgs.tar.bz2 -C /etc/nixos + mv /etc/nixos/nixpkgs-* /etc/nixos/nixpkgs + ln -sfn ../nixpkgs/pkgs /etc/nixos/nixos/pkgs + end script + "; + } + + # Allow the user to do something useful on tty8 while waiting + # for the installation to finish. { name = "rogue"; job = " start on udev