Commit graph

2064 commits

Author SHA1 Message Date
Eelco Dolstra
c4df455e81 * Allow the user to do something useful on tty8 while waiting for the
installation to finish.

svn path=/nixos/trunk/; revision=7578
2007-01-08 23:10:29 +00:00
Eelco Dolstra
2148123b9c * Merge splash-themes.nix into the regular options infrastructure.
svn path=/nixos/trunk/; revision=7576
2007-01-08 22:41:41 +00:00
Eelco Dolstra
56da3e7887 * Allow any login program to be specified.
svn path=/nixos/trunk/; revision=7575
2007-01-08 21:34:30 +00:00
Eelco Dolstra
873a8de2ad * Don't emit ctrl-alt-delete.
svn path=/nixos/trunk/; revision=7574
2007-01-08 21:25:06 +00:00
Eelco Dolstra
b7f11ad98b * Generate sshd_config to set XAuthLocation if X11 forwarding is
enabled.

svn path=/nixos/trunk/; revision=7548
2007-01-07 10:19:16 +00:00
Eelco Dolstra
1a592f3a4e * hda is called sda now.
svn path=/nixos/trunk/; revision=7535
2007-01-05 00:28:48 +00:00
Eelco Dolstra
966f6e0fb0 * More refactoring.
svn path=/nixos/trunk/; revision=7534
2007-01-04 10:31:36 +00:00
Eelco Dolstra
b6b5bafa22 * Refactoring.
svn path=/nixos/trunk/; revision=7533
2007-01-04 10:29:40 +00:00
Eelco Dolstra
acacfda1b2 * Remove references to stdenvNew.
svn path=/nixos/trunk/; revision=7532
2007-01-04 10:21:25 +00:00
Armijn Hemel
231b469188 use mkfs.ext2 for making filesystems, not e2fsck
svn path=/nixos/trunk/; revision=7480
2006-12-25 19:55:40 +00:00
Eelco Dolstra
936fa69912 * Doh.
svn path=/nixos/trunk/; revision=7479
2006-12-25 19:32:31 +00:00
Eelco Dolstra
162181ffba * LVM support (in stage 2; having / on LVM is not yet supported). LVM
triggers a new-devices event so that the filesystems job mounts file
  systems on the logical volumes.

svn path=/nixos/trunk/; revision=7478
2006-12-24 01:07:28 +00:00
Eelco Dolstra
cb4e81d38f * Handle devices that are symlinks.
svn path=/nixos/trunk/; revision=7477
2006-12-24 00:54:52 +00:00
Eelco Dolstra
bed8b44dc8 * We do need some devices in /dev when not auto-detecting the root
device.

svn path=/nixos/trunk/; revision=7476
2006-12-23 23:38:34 +00:00
Eelco Dolstra
e81f1b4334 * Add glibc, ntp to the path.
svn path=/nixos/trunk/; revision=7474
2006-12-23 22:43:39 +00:00
Eelco Dolstra
11e4d36db1 * Look for the CD-ROM in /sys/block, not /sys/devices. Don't look for
a "media" file since SCSI CD-ROM drives don't have it (and
  supposedly it's going away in IDE too).
* Create the device node automatically from the "dev" file in
  /sys/block/$bla.  

svn path=/nixos/trunk/; revision=7473
2006-12-23 01:16:39 +00:00
Eelco Dolstra
6afa8d776d * Create some SCSI devices. We should really just run udev in the
initrd...

svn path=/nixos/trunk/; revision=7472
2006-12-23 01:02:45 +00:00
Eelco Dolstra
46f1c1987c * Add sd_mod.
svn path=/nixos/trunk/; revision=7471
2006-12-23 00:59:14 +00:00
Eelco Dolstra
af49eda93f * Doh.
svn path=/nixos/trunk/; revision=7470
2006-12-23 00:27:39 +00:00
Eelco Dolstra
07db057cbc * Make sure that nogroup exists.
svn path=/nixos/trunk/; revision=7469
2006-12-23 00:26:35 +00:00
Eelco Dolstra
444d6b7583 * Add some SATA / SCSI related drivers to the initrd.
svn path=/nixos/trunk/; revision=7468
2006-12-23 00:13:22 +00:00
Eelco Dolstra
8d09b9066c * Purity: don't access /etc/modules.conf.
svn path=/nixos/trunk/; revision=7467
2006-12-22 23:51:18 +00:00
Eelco Dolstra
f25ce41c18 * Option boot.doHardwareScan to disable the hardware scan. Also, if
the flag "safemode" is specified on the kernel command line, also
  disable the hardware scan.
* Option boot.kernelModules to specify a set of modules to be loaded
  in stage 2 (in addition to the initrd modules in
  boot.initrd.kernelModules).

svn path=/nixos/trunk/; revision=7466
2006-12-22 23:34:42 +00:00
Eelco Dolstra
75e1652f05 * Chroot ntpd.
svn path=/nixos/trunk/; revision=7464
2006-12-22 19:29:18 +00:00
Eelco Dolstra
2d605d7041 * Don't run ntpd as root.
svn path=/nixos/trunk/; revision=7463
2006-12-22 19:23:19 +00:00
Eelco Dolstra
f037f6fbd4 * Emit ip-up / ip-down events when we get or lose a DHCP lease.
* ntpd: start on ip-up, not when the network interfaces are up,
  otherwise it will fail because it can't find any servers right
  away.

svn path=/nixos/trunk/; revision=7461
2006-12-22 17:28:25 +00:00
Eelco Dolstra
617ebcbcce * Job for ntpd. Doesn't seem to work quite right, but that might be a
VMware problem.

svn path=/nixos/trunk/; revision=7460
2006-12-21 23:43:17 +00:00
Eelco Dolstra
647db4dd2a * Don't try to mount when the mount point isn't there yet.
* Run fsck.

svn path=/nixos/trunk/; revision=7458
2006-12-21 20:08:15 +00:00
Eelco Dolstra
e3acce2f4f * Wait until the temporary udevd is gone.
svn path=/nixos/trunk/; revision=7457
2006-12-21 20:07:46 +00:00
Eelco Dolstra
d54b0a0749 * Don't refer to non-existent groups.
svn path=/nixos/trunk/; revision=7456
2006-12-21 19:22:06 +00:00
Eelco Dolstra
3b9a7c747e * Trigger swap on new-devices.
svn path=/nixos/trunk/; revision=7455
2006-12-21 19:21:36 +00:00
Eelco Dolstra
896a935de1 * Repeatedly unmount file systems until a fixpoint is reached (no more
file systems can be unmounted).
* Remount all un-unmountable file systems as read-only.
* Explicitly call losetup to get rid of loopback devices to work
  around a bug in mount.

svn path=/nixos/trunk/; revision=7454
2006-12-21 18:12:19 +00:00
Eelco Dolstra
bf8e19f6db * Mount file systems until a fixpoint is reached.
* Work properly for loopback mounts.

svn path=/nixos/trunk/; revision=7453
2006-12-21 18:10:33 +00:00
Eelco Dolstra
f89f3c0643 * Emit the new-devices event to cause the filesystems job to be
rerun.

svn path=/nixos/trunk/; revision=7452
2006-12-21 18:09:10 +00:00
Eelco Dolstra
78fcb0a356 * Skip the sys-* events, otherwise we reboot accidentally.
svn path=/nixos/trunk/; revision=7451
2006-12-21 18:08:29 +00:00
Eelco Dolstra
42cf9a9050 * Respect the options and fsType attributes.
* Remount file systems to allow mount options to be changed
  dynamically.

svn path=/nixos/trunk/; revision=7450
2006-12-21 14:44:22 +00:00
Eelco Dolstra
b363fc4c57 * Mount all file systems in the fileSystems option.
svn path=/nixos/trunk/; revision=7449
2006-12-21 14:22:40 +00:00
Eelco Dolstra
c78a1d9781 * Upstart job to start swapping to the devices or files listed in the
swapDevices option.

svn path=/nixos/trunk/; revision=7448
2006-12-21 01:07:23 +00:00
Eelco Dolstra
e060b99c52 * Removed boot.rootDevice, instead obtain the root device from the
filesystems option (specifically the file system with mountPoint ==
  "/").

svn path=/nixos/trunk/; revision=7447
2006-12-21 00:16:20 +00:00
Eelco Dolstra
f9d67afce0 * Options for overriding the set of kernel modules in the initrd.
svn path=/nixos/trunk/; revision=7432
2006-12-19 22:12:44 +00:00
Eelco Dolstra
2d6e8e63ae * Forgot to commit.
svn path=/nixos/trunk/; revision=7430
2006-12-19 21:31:19 +00:00
Eelco Dolstra
a630a314f2 * Wait for jobs to finish.
svn path=/nixos/trunk/; revision=7418
2006-12-19 01:34:09 +00:00
Eelco Dolstra
af1c54fbdc * Subversion subservice.
* Example of a NixOS configuration for a Subversion server.

svn path=/nixos/trunk/; revision=7412
2006-12-19 01:03:15 +00:00
Eelco Dolstra
9f47929138 * Apache configuration.
svn path=/nixos/trunk/; revision=7393
2006-12-18 19:46:48 +00:00
Eelco Dolstra
70f929a0a5 * Upstart job for Apache.
svn path=/nixos/trunk/; revision=7391
2006-12-18 19:20:03 +00:00
Eelco Dolstra
8293f1eb61 svn path=/nixos/trunk/; revision=7388 2006-12-18 17:41:57 +00:00
Eelco Dolstra
1604d2fa81 svn path=/nixos/trunk/; revision=7387 2006-12-18 17:41:46 +00:00
Eelco Dolstra
37c17d7601 * When runtime switching to a new configuration, stop/start/restart
Upstart jobs as appropriate.  I.e., if a job exists in the old but
  not the new configuration, stop it; if it exists in the new but not
  the old, start it; and most interesting, if it exists in both but
  its store paths differ, restart it.  So the purely functional model
  combined cryptographic hashing allows us to precisely identify how
  two configurations differ from each other 

svn path=/nixos/trunk/; revision=7385
2006-12-18 16:27:56 +00:00
Eelco Dolstra
84f1e01646 * Doh.
svn path=/nixos/trunk/; revision=7384
2006-12-18 15:52:43 +00:00
Eelco Dolstra
87e2456814 * Use getenv/useradd.
svn path=/nixos/trunk/; revision=7382
2006-12-18 15:48:29 +00:00