summary refs log tree commit diff
path: root/modules/system
Commit message (Collapse)AuthorAge
* * Fix Amazon image generation (broken by r32913).Eelco Dolstra2012-03-13
| | | | svn path=/nixos/trunk/; revision=33032
* * Create a /usr/bin/env symlink. This allows scripts from otherEelco Dolstra2012-03-12
| | | | | | | | | | distributions with shebang lines such as #! /usr/bin/env python to work correctly. svn path=/nixos/trunk/; revision=33011
* Properly filter a possible lack of "grub.device", in case of using only ↵Lluís Batlle i Rossell2012-03-12
| | | | | | "grub.devices". svn path=/nixos/trunk/; revision=33009
* Adding /dev/tty to the stage1, so 'more' and 'less' now page well.Lluís Batlle i Rossell2012-03-11
| | | | svn path=/nixos/trunk/; revision=33006
* Making the stage2 interpreter bash non-interactive, while keeping theLluís Batlle i Rossell2012-03-11
| | | | | | | interactive shell with bash interactive. Suggested by Eelco. svn path=/nixos/trunk/; revision=33005
* Disabling the initrd extra tools by default, until further review.Lluís Batlle i Rossell2012-03-11
| | | | svn path=/nixos/trunk/; revision=33004
* Removing a 'set -x' in the stage1 extra tools.Lluís Batlle i Rossell2012-03-11
| | | | svn path=/nixos/trunk/; revision=33003
* TypoLluís Batlle i Rossell2012-03-11
| | | | svn path=/nixos/trunk/; revision=33002
* Making the stage2 'debug2' spawn a shell with job control, like in stage1, ↵Lluís Batlle i Rossell2012-03-11
| | | | | | | | | running it in a virtual terminal and not in the console. This brings wonderful things like ^C. svn path=/nixos/trunk/; revision=33001
* A more friendly stage1, with interactive bash, busybox plenty of tools, etc.Lluís Batlle i Rossell2012-03-11
| | | | | | | | | | | I set it as default because users can benefit of this without having to prepare their nixos first, and I don't think it will break any nixos for the initrd size increase. It can be disabled with 'boot.initrd.withExtraTools = false'. svn path=/nixos/trunk/; revision=33000
* Making stage2 get a full interactive bash for the stage2 init, so there the ↵Lluís Batlle i Rossell2012-03-11
| | | | | | | | | shell has readline, jobs, etc. svn path=/nixos/trunk/; revision=32999
* * Modularize filesystem support. Filesystems such as btrfs andEelco Dolstra2012-03-09
| | | | | | | | | | | | reiserfs now have separate modules that are conditional on boot.supportedFilesystems and boot.initrd.supportedFilesystems. By default, these include the filesystems specified in the fsType attribute in fileSystems. Ext2/3/4 support is currently unconditional. Also unbreak the installer test (http://hydra.nixos.org/build/2272302). svn path=/nixos/trunk/; revision=32954
* Allow a way to install grub to multiple devices (for /boot on soft raid arrays).Lluís Batlle i Rossell2012-03-08
| | | | svn path=/nixos/trunk/; revision=32913
* If enabling luks on initrd, also adding cryptsetup to system packages. I ↵Lluís Batlle i Rossell2012-03-08
| | | | | | think it's useful. svn path=/nixos/trunk/; revision=32910
* Adding an option to luksroot, so it allows to define whether to launch ↵Lluís Batlle i Rossell2012-03-04
| | | | | | | | | cryptsetup after or before LVM. To allow dmcrypt over lvm and lvm over dmcrypt. svn path=/nixos/trunk/; revision=32784
* * Upstart jobs: don't emit a description if there is none.Eelco Dolstra2012-03-04
| | | | svn path=/nixos/trunk/; revision=32775
* upstart: options for setuid and setgidMathijs Kwik2012-03-04
| | | | | | as jobs running as different users cannot create their logfile, I moved that to an activationScript svn path=/nixos/trunk/; revision=32762
* Making the luks thing of initrd a bit more flexible. I used it to get aLluís Batlle i Rossell2012-03-03
| | | | | | | ciphered swap, where I could hibernate ciphered. svn path=/nixos/trunk/; revision=32754
* * If debug2 is passed on the kernel command line, run Upstart withEelco Dolstra2012-03-02
| | | | | | the --verbose flag to see what it's doing. svn path=/nixos/trunk/; revision=32747
* * Run the stage 2 debug shell at a more useful point (just beforeEelco Dolstra2012-03-02
| | | | | | | starting Upstart). This also causes $PATH to be set to something more sensible. svn path=/nixos/trunk/; revision=32740
* * Set the default value for the ‘path’ job attribute using the NixOSEelco Dolstra2012-02-20
| | | | | | | module system so that it can be overriden. Also use an ‘apply’ to compute the actual $PATH. svn path=/nixos/trunk/; revision=32440
* * Use openresolv to set the static nameserver configuration. NextEelco Dolstra2012-02-20
| | | | | | | step is to get the DHCP client, OpenVPN etc. to use openresolv as well. svn path=/nixos/trunk/; revision=32411
* modules/system/upstart-events/shutdown.nix: refer to bash binary with full pathPeter Simons2011-12-30
| | | | | | | Upstart won't find a "bash" binary in $PATH when those commands are run, so we refer to it using an absolute path. svn path=/nixos/trunk/; revision=31157
* switched all mergeOptionString to pkgs.lib.types.stringFlorian Friesdorf2011-12-29
| | | | | | | | | pierron recommended the use of types.string over mergeOptionString, as it is superior but might break things. For my system the change evaluated to the exactly same. svn path=/nixos/trunk/; revision=31138
* Revert "test we have cryptsetup-1.4.1 in initrd"Florian Friesdorf2011-12-28
| | | | | | | | This reverts commit 025f8c40b40fad50086e8761eee61098d8fb2651. The check was intened for building the initrd of the installer. svn path=/nixos/trunk/; revision=31137
* Revert "added an "error" to luksroot that should be caught"Florian Friesdorf2011-12-28
| | | | | | This reverts commit c7967af35a13f68a8785c142582b639dc8c8e92c. svn path=/nixos/trunk/; revision=31136
* added an "error" to luksroot that should be caughtFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31135
* test we have cryptsetup-1.4.1 in initrdFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31132
* luksroot uses preLVMCommands instead of postDeviceCommandsFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31131
* add preLVMCommands hookFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31130
* luksroot waits for usb driveFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31129
* copy only cryptsetup deps to stage-1 and test cryptsetupFlorian Friesdorf2011-12-28
| | | | | | | | | | | | | | | | popt-0.16 and cryptsetup-1.4.1 both generated pkgconfig (in contrast to older versions). The pkgconfig files (popt.pc and cryptsetup.pc) contain references into the store that are not removed by patchelf and stage-1 fails with errors like: "output is not allowed to refer to path `/nix/store/qccjhn063cfv171rcaxvxh0yk96zf7l2-cryptsetup-1.4.1'". Now, only the cryptsetup binaries and its dependencies are copied, determined by ldd. In addition the cryptsetup binary and lvm are tested after patchelf has adjusted the library paths. Thanks to Peter Simons and Eelco Dolstra for giving the rights hints. svn path=/nixos/trunk/; revision=31128
* enable testing of extraUtilsCommands after patchelfFlorian Friesdorf2011-12-28
| | | | svn path=/nixos/trunk/; revision=31127
* Asking for an interactive shell in case of error umounting filesystems. I'veLluís Batlle i Rossell2011-12-26
| | | | | | | not tested it; sometimes I hit the trouble, but not always. svn path=/nixos/trunk/; revision=31104
* * Handle the util-linux-ng -> util-linux renameEelco Dolstra2011-12-20
| | | | | | (http://hydra.nixos.org/build/1646277/nixlog/1). svn path=/nixos/trunk/; revision=30984
* * Set boot.vesa to false if we don't have a fbcondecor-enabled kernel.Eelco Dolstra2011-12-08
| | | | svn path=/nixos/trunk/; revision=30802
* * Remove the cfq_iosched module.Eelco Dolstra2011-11-29
| | | | svn path=/nixos/trunk/; revision=30618
* * Add a module for managing cgroups.Eelco Dolstra2011-11-24
| | | | svn path=/nixos/trunk/; revision=30551
* * Disable all fbcondecor-related stuff if boot.vesa is disabled.Eelco Dolstra2011-11-08
| | | | svn path=/nixos/trunk/; revision=30343
* * Remove loopback devices during shutdown, since they may preventEelco Dolstra2011-11-03
| | | | | | filesystems from being unmounted. svn path=/nixos/trunk/; revision=30203
* * Add a module for DRBD.Eelco Dolstra2011-11-03
| | | | svn path=/nixos/trunk/; revision=30202
* * Remove references to the "safemode" boot option, which doesn't doEelco Dolstra2011-11-03
| | | | | | anything. svn path=/nixos/trunk/; revision=30199
* * modprobe wants /etc/modprobe.d now.Eelco Dolstra2011-11-01
| | | | svn path=/nixos/trunk/; revision=30164
* Reverting revisions 30103-30106: "always set ↵Peter Simons2011-10-30
| | | | | | | | | | | | nixpkgs.config.{state,store}Dir", etc. After the change from revision 30103, nixos-rebuild suddenly consumed freaky amounts of memory. I had to abort the process after it had allocated well in excess of 30GB(!) of RAM. I'm not sure what is causing this behavior, but undoing that assignment fixes the problem. The other two commits needed to be revoked, too, because they depend on 30103. svn path=/nixos/trunk/; revision=30127
* find modules | fgrep .nix | fgrep -v .svn | fgrep -v nixpkgs.nix | xargs sed ↵Shea Levy2011-10-29
| | | | | | | | -i -e 's|/nix/var|${config.nixpkgs.config.nix.stateDir}|g' -e 's|/nix/store|${config.nixpkgs.config.nix.storeDir}|g' Don't assume /nix/store or /nix/var in NixOS modules, this is configurable svn path=/nixos/trunk/; revision=30104
* * Make the permissions on /run less liberal.Eelco Dolstra2011-10-27
| | | | svn path=/nixos/trunk/; revision=30065
* * Don't restart udevtrigger from the switch script. It's triggered byEelco Dolstra2011-10-21
| | | | | | udev. svn path=/nixos/trunk/; revision=29962
* Add support for NFS root file system.Nicolas Pierron2011-10-15
| | | | | | Patch by Rickard Nilsson. svn path=/nixos/trunk/; revision=29855
* * Properly shut down udevd in stage 1. Otherwise there is a slightEelco Dolstra2011-09-22
| | | | | | | | | | possibility that a udevd process survives, preventing udevd from starting in stage 2: machine# udevd[1421]: bind failed: Address already in use machine# udevd[1421]: error binding udev control socket svn path=/nixos/trunk/; revision=29434
* strip trailing whitespace; no functional changePeter Simons2011-09-14
| | | | svn path=/nixos/trunk/; revision=29285