summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-12-16 23:50:10 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-12-16 23:50:10 +0000
commita0759a51e93349ea0c7b729a25ce10b4c5cb1bcc (patch)
treeece8669c698939889951b293bc94a91a00ea8e63 /README
parent3e7f4280df57ce69879bee643b10a6c8e8d1d4c4 (diff)
downloadnixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar.gz
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar.bz2
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar.lz
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar.xz
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.tar.zst
nixpkgs-a0759a51e93349ea0c7b729a25ce10b4c5cb1bcc.zip
* Some installer fixes.
* Readme.

svn path=/nixos/trunk/; revision=7358
Diffstat (limited to 'README')
-rw-r--r--README80
1 files changed, 71 insertions, 9 deletions
diff --git a/README b/README
index e2f76b08301..ca045e89342 100644
--- a/README
+++ b/README
@@ -1,19 +1,81 @@
-To get a Stage 1 shell:
+*** Building the installation CD ***
 
-Add "debug1" to the kernel command line.
+- Make sure that you have a very recent Nix.
 
+- Pull from the Nixpkgs channel to speed up building.
 
-Switching to maintenance mode:
+- Check out https://svn.cs.uu.nl:12443/repos/trace/nixos/trunk/.
 
-$ shutdown now
+- Build the ISO image:
 
-To get out of maintenance mode:
+  $ nix-build instances/rescue-cd.nix -A rescueCD
+
+  This gives you an image in result/iso/nixos.iso.
+
+- Burn the ISO image or attach it to a CD-ROM drive in VMware.
+
+
+*** Installation ***
+
+- Boot from the CD.
+
+- The CD contains a pretty complete NixOS installation.  When it's
+  finished booting, it should have detected most of your hardware and
+  brought up networking (check ifconfig).  Networking is necessary for
+  the installer.  It's best if you have a DHCP server on your
+  network.  Otherwise configure manually.
+
+- Login as "root", empty password.
+
+- The NixOS installer doesn't do any partitioning or formatting yet,
+  so you need to that yourself.  Use "fdisk" and "e2fsck".
+
+- Unpack the NixOS and Nixpkgs sources:
+
+  $ tar xf /nixos.tar.bz2
+  $ tar xf /nixpkgs.tar.bz2
+  $ ln -s nixpkgs-*/pkgs .
+
+  (TODO: do this automatically.)
+
+- The installation is declarative; you need to make a description of
+  the configuration that is to be built and activated.  The
+  configuration is specified in a Nix expression.  See
+  instances/examples for example machine configurations.  You can copy
+  and edit one of those (e.g., instances/examples/basic.nix to
+  my-config.nix).  See configuration/options.nix for available
+  configuration settings.  The text editor "nano" is available.
 
-$ initctl emit startup 
+  In particular you need to specify boot.rootDevice and
+  boot.grubDevice for the devices where the OS and Grub are to be
+  installed, respectively.
 
+- Do the installation:
 
-Updating the current system configuration:
+  $ nixos-installer.sh /dev/TARGET . my-config.nix
 
-$ nix-env -p /nix/var/nix/profiles/system -f system-configuration.nix -i -A systemConfiguration
-$ /nix/var/nix/profiles/system/bin/switch-to-configuration
+  where TARGET matched boot.rootDevice in your configuration.  (TODO:
+  this should be extracted automatically.)
+
+- If everything went well:
+
+  $ reboot
+
+  You should now be able to boot into the installed NixOS.
+  
+
+*** Troubleshooting ***        
+
+
+To get a Stage 1 shell:
+
+- Add "debug1" to the kernel command line.
+
+
+To switch to maintenance mode:
+
+  $ shutdown now
+
+To get out of maintenance mode:
 
+  $ initctl emit startup