nixpkgs/test
Eelco Dolstra 67bada0886 * Utility: rebuild the NixOS configuration and switch to it.
svn path=/nixu/trunk/; revision=7149
2006-11-27 15:32:11 +00:00
..
helpers * Refactoring. 2006-11-26 23:54:49 +00:00
upstart-jobs * Refactoring. 2006-11-26 23:54:49 +00:00
boot-environment.nix * Don't hardcode selinux=0 etc. 2006-11-27 13:59:50 +00:00
boot-stage-1-init.sh * Show a splash screen during booting. The splash screen is displayed 2006-11-27 01:35:34 +00:00
boot-stage-1.nix * Boot into a fully functional stage 2. 2006-11-13 11:41:27 +00:00
boot-stage-2-init.sh * Include etc/profile.d/nix.sh. 2006-11-25 00:39:43 +00:00
boot-stage-2.nix * Put the PCI module probing in an Upstart task. We now have 2006-11-20 17:28:08 +00:00
grub-menu-builder.sh * Put the date of each configuration in the Grub menu. 2006-11-24 00:00:32 +00:00
installer.nix * Use exportReferencesGraph everywhere. 2006-11-17 14:13:21 +00:00
installer.sh * Only run grub-install in switch-to-configuration when 2006-11-27 13:51:08 +00:00
isolinux.cfg * A minimal boot script for stage 1 of the boot (loading kernel 2006-11-02 22:48:01 +00:00
make-devices.sh * Stage 1: clean up better (unmount /proc and /sys, remount new root 2006-11-06 22:21:50 +00:00
make-initrd.nix * Show a splash screen during booting. The splash screen is displayed 2006-11-27 01:35:34 +00:00
make-initrd.sh * Show a splash screen during booting. The splash screen is displayed 2006-11-27 01:35:34 +00:00
make-iso9660-image.nix * Use exportReferencesGraph everywhere. 2006-11-17 14:13:21 +00:00
make-iso9660-image.sh * Use exportReferencesGraph everywhere. 2006-11-17 14:13:21 +00:00
modules-closure.nix * Given a kernel build (with modules in $kernel/lib/modules/VERSION), 2006-11-03 11:47:40 +00:00
modules-closure.sh * Given a kernel build (with modules in $kernel/lib/modules/VERSION), 2006-11-03 11:47:40 +00:00
options.nix * Prototyping a bit: first class options. We want the configuration 2006-11-27 15:07:46 +00:00
paths-from-graph.sh * Use exportReferencesGraph everywhere. 2006-11-17 14:13:21 +00:00
README * Pass the path of the stage 2 init script to stage 1 init through the 2006-11-24 00:04:29 +00:00
rescue-cd.nix * Oops. 2006-11-23 21:59:25 +00:00
splash-themes.nix * Show a splash screen during booting. The splash screen is displayed 2006-11-27 01:35:34 +00:00
system-configuration.nix * Don't hardcode selinux=0 etc. 2006-11-27 13:59:50 +00:00
system-configuration.sh * Don't hardcode selinux=0 etc. 2006-11-27 13:59:50 +00:00
upgrade.sh * Utility: rebuild the NixOS configuration and switch to it. 2006-11-27 15:32:11 +00:00

To get a Stage 1 shell:

Add "debug1" to the kernel command line.


Switching to maintenance mode:

$ shutdown now

To get out of maintenance mode:

$ initctl emit startup 


Updating the current system configuration:

$ nix-env -p /nix/var/nix/profiles/system -f system-configuration.nix -i -A systemConfiguration
$ /nix/var/nix/profiles/system/bin/switch-to-configuration