Commit graph

6 commits

Author SHA1 Message Date
Eelco Dolstra 6ae45d46ed * Put Nixpkgs and the NixOS expressions on the installation CD (the
installer needs them).

svn path=/nixu/trunk/; revision=7065
2006-11-17 15:27:31 +00:00
Eelco Dolstra 78b2ed263e * Use exportReferencesGraph everywhere.
svn path=/nixu/trunk/; revision=7063
2006-11-17 14:13:21 +00:00
Eelco Dolstra 91a66e72dc * rescue-system -> boot-environment.
svn path=/nixu/trunk/; revision=7017
2006-11-13 16:19:57 +00:00
Eelco Dolstra 49f8402876 * Boot into a fully functional stage 2.
* Stage 2 init: handle non-read-only roots.

svn path=/nixu/trunk/; revision=7014
2006-11-13 11:41:27 +00:00
Eelco Dolstra 0b26af2188 * The installer now installs a configuration on the target device that
boots into stage 1 (kernel+initrd) succesfully.
  
  `system-configuration.nix' contains the definition of the
  configuration to be installed.  The attribute systemConfiguration is
  installed into the profile /nix/var/nix/profiles/system.  Then the
  program /nix/var/nix/profiles/system/bin/switch-to-configuration is
  called to finalise the installation.  This program (generated by
  system-configuration.sh) installs Grub on the drive with a menu that
  contains the entry for the desired kernel and initrd.

  In principle this allows us to do rollbacks to previous system
  configurations by doing `nix-env --rollback' and then calling
  switch-to-configuration to update Grub.  Ideally this should be done
  in a single command (and we should consider the obvious risk of
  garbage collecting the current kernel etc. to which the current Grub
  menu points...).

  Maybe the responsibility for generating the Grub menu should be
  placed somewhere else.  For instance, we could generate a Grub menu
  automatically out of all the generations in the `system' profile.

svn path=/nixu/trunk/; revision=7009
2006-11-12 23:30:03 +00:00
Eelco Dolstra 0785dfb9f8 * Lots of refactoring; put the CD image generation in rescue-cd.nix.
Support booting from something other than a CD.  Add some parameters
  to specify the root device.

svn path=/nixu/trunk/; revision=7000
2006-11-12 18:48:47 +00:00