Commit Graph

163 Commits

Author SHA1 Message Date
Armijn Hemel
f7c69397b7 update howto to reflect new changes
svn path=/nixu/trunk/; revision=6274
2006-08-27 15:34:24 +00:00
Armijn Hemel
65742f6eb9 refactor install process:
* user is dropped into a shell, where the user can run tools like fdisk to partition a disk
* user needs to add a file called "disklayout" where it specifies SWAP, INSTALLDEVICE and TARGETDRIVE
* depending on the values of these the installscript might need to be fixed to get the GRUB configuration right

It's still somewhat inflexible, but it gives the user a bit more control than the old scheme

svn path=/nixu/trunk/; revision=6271
2006-08-27 14:14:59 +00:00
Armijn Hemel
65203abef4 make sure /lib/modules exists on the target drive. Whoopsie.
svn path=/nixu/trunk/; revision=6078
2006-08-08 22:35:40 +00:00
Armijn Hemel
297d159c8d make sure /etc/resolv.conf is available in our chroot
svn path=/nixu/trunk/; revision=6077
2006-08-08 21:31:34 +00:00
Armijn Hemel
9626049ec5 first attempt at using network installs
svn path=/nixu/trunk/; revision=6076
2006-08-08 20:24:33 +00:00
Armijn Hemel
ddc27b2313 use "kernelscripts" package to install the kernel and extra modules. This is
actually bad, because in theory a different kernel could be chosen to be
installed and then we could not load any modules...but even communism
works...in theory!

svn path=/nixu/trunk/; revision=6068
2006-08-07 19:48:18 +00:00
Armijn Hemel
7e6a7d6418 rewrite to use busybox
TODO: rewrite some of the tools to use the busybox tools instead of the "normal" utilities during installation, so we can shave off another 15 MB from the
installer

svn path=/nixu/trunk/; revision=6063
2006-08-06 23:59:31 +00:00
Armijn Hemel
33940db2dc re-enable the default debugging login shell
svn path=/nixu/trunk/; revision=6048
2006-08-04 23:39:59 +00:00
Armijn Hemel
183b838ed8 script cleanups
svn path=/nixu/trunk/; revision=6041
2006-08-04 09:29:32 +00:00
Armijn Hemel
97690c23da cosmetic change
svn path=/nixu/trunk/; revision=6036
2006-08-03 18:00:32 +00:00
Armijn Hemel
e030a74c87 remove substitutes that point to the installer CD after installation
svn path=/nixu/trunk/; revision=6035
2006-08-03 17:10:08 +00:00
Armijn Hemel
6e030f736c speed up the installation a *lot*, at the price of a bit more diskspace (49 MB currently)
svn path=/nixu/trunk/; revision=6034
2006-08-03 16:19:04 +00:00
Armijn Hemel
fcc3b33cb9 pack Nix packages in a tarball, unpack tarball, don't copy it file for file from CD (== slow)
svn path=/nixu/trunk/; revision=6030
2006-08-03 13:43:44 +00:00
Armijn Hemel
71755c6176 unmount all filesystems properly before unmounting target disk
svn path=/nixu/trunk/; revision=6026
2006-08-02 22:54:44 +00:00
Armijn Hemel
493661f880 This is a major big update for the install process for NixOS. This requires
the latest patches to Nix itself, which were committed the last few days.

Biggest changes:

make-disk.sh:
* use nix-push to generate NAR files and a manifest
* use only copy a "few" packages (but probably still too many than we want) to the Nix store on the CD

fill-disk.sh:
* use nix-pull to register a manifest with a lot of packages. Only copy and
register as valid the few packages that are in the Nix store on the installer
CD, install the rest via nix-env and other tools (this needs to be reviewed
thoroughly for optimizations).

All in all the install process is a lot cleaner now, the login script is broken
however (but should be relatively easy to fix with some Nix wizardry). NIX_ROOT
is still broken, but we can work around most issues with relative ease now.

svn path=/nixu/trunk/; revision=6025
2006-08-02 22:42:56 +00:00
Armijn Hemel
2c87da322d use less packages
svn path=/nixu/trunk/; revision=6024
2006-08-02 22:34:13 +00:00
Armijn Hemel
8c56a19d55 take closure of statically linked bash, this makes it "deterministic" according to eelco ;)
svn path=/nixu/trunk/; revision=6007
2006-07-31 15:16:10 +00:00
Armijn Hemel
95fa5b81b1 remove a dependency on an external coreutils (overlooked)
svn path=/nixu/trunk/; revision=5669
2006-07-09 22:33:01 +00:00
Armijn Hemel
89762236cf it is nice to have a few more ttys available in NixOS, so mknod them
svn path=/nixu/trunk/; revision=5582
2006-07-04 20:38:14 +00:00
Armijn Hemel
afb7f5b950 actually build nix-unstable
svn path=/nixu/trunk/; revision=5577
2006-07-04 18:12:48 +00:00
Armijn Hemel
45a2be1fbe also use our own cpio. Make sure we don't just query nix expressions, but
actually realize them as well. D'oh!

svn path=/nixu/trunk/; revision=5566
2006-07-03 23:16:44 +00:00
Armijn Hemel
8a14c8d886 wel also want to use our own gzip
svn path=/nixu/trunk/; revision=5565
2006-07-03 22:40:56 +00:00
Armijn Hemel
a1bd3698ef also use our own coreutils
svn path=/nixu/trunk/; revision=5564
2006-07-03 22:20:22 +00:00
Armijn Hemel
c984b735bd also use mkisofs from Nixpkgs
svn path=/nixu/trunk/; revision=5563
2006-07-03 09:32:15 +00:00
Armijn Hemel
a60d5c3bdb also use sed and tar from Nixpkgs instead of the host system
svn path=/nixu/trunk/; revision=5562
2006-07-03 08:39:52 +00:00
Armijn Hemel
e76efef0d0 make sure we always have mktemp, by building our own version first using Nix.
This makes it a bit more pure to build the NixOS iso. Still room for improvement though...

svn path=/nixu/trunk/; revision=5559
2006-07-02 22:37:40 +00:00
Armijn Hemel
32c8535c4d reenable e2fsprogs compiled with dietlibc
svn path=/nixu/trunk/; revision=5528
2006-06-25 10:42:17 +00:00
Armijn Hemel
02cf649af6 small cleanups, also move to newer Nix
svn path=/nixu/trunk/; revision=5524
2006-06-24 22:14:43 +00:00
Armijn Hemel
2a304add0b rewrite to new Nixpkgs and new Nix version
svn path=/nixu/trunk/; revision=5233
2006-04-28 12:45:32 +00:00
Armijn Hemel
d8550e9d10 remove all reference to the "hotplug" package, since it is obsolete.
TODO: update udev

svn path=/nixu/trunk/; revision=5222
2006-04-25 23:52:31 +00:00
Armijn Hemel
af9eb8537e move the existing documentation to the docs directory
svn path=/nixu/trunk/; revision=5007
2006-03-08 19:15:14 +00:00
Armijn Hemel
a05f476c39 add a doc directory, with some documentation in it
svn path=/nixu/trunk/; revision=5006
2006-03-08 19:14:12 +00:00
Armijn Hemel
89df039e35 * store the value of hotplug in /etc/sysconfig/hotplug and cat this value
to /proc/sys/kernel/hotplug during boot. (FIXME, install hotplug during
install of NixOS)
* /dev/input is created by udev

svn path=/nixu/trunk/; revision=4660
2006-02-01 13:31:52 +00:00
Armijn Hemel
78767321ce add something so we modprobe some stuff for at least one family of USB
controllers (uhci-hcd). This is of course not very elegant: even if a
machine does not have USB, or another USB controller this module will loaded.
A better way would be to let some hardware probing program run first, but
that is "future work"

svn path=/nixu/trunk/; revision=4631
2006-01-31 11:01:28 +00:00
Armijn Hemel
caf9b6bfba start of good HOWTO for using X in NixOS
svn path=/nixu/trunk/; revision=4602
2006-01-26 19:48:51 +00:00
Armijn Hemel
ff05d84a10 we also want /dev/input to be available (fixme, can't this one be created by udev instead?)
svn path=/nixu/trunk/; revision=4593
2006-01-26 10:25:06 +00:00
Armijn Hemel
6bad2b0809 do stuff with utmp and wtmp, so tools like "w" work
svn path=/nixu/trunk/; revision=4581
2006-01-20 13:47:01 +00:00
Armijn Hemel
994b85b4af make all paths absolute...still needed: a builder
svn path=/nixu/trunk/; revision=4563
2006-01-16 16:05:16 +00:00
Armijn Hemel
bb22789021 change the hostname from "uml" to "nixos" to keep eelco happy ;)
svn path=/nixu/trunk/; revision=4540
2006-01-12 13:51:43 +00:00
Armijn Hemel
80595bb21f add a bit about mounting usbfs
svn path=/nixu/trunk/; revision=4516
2006-01-08 00:42:45 +00:00
Armijn Hemel
41eb324771 add a bit about hotplugging
svn path=/nixu/trunk/; revision=4515
2006-01-08 00:23:31 +00:00
Armijn Hemel
ed5199d3b2 make symlinks to the right location
svn path=/nixu/trunk/; revision=4511
2006-01-07 22:35:20 +00:00
Armijn Hemel
908db1fd45 rename dir...it makes more sense
svn path=/nixu/trunk/; revision=4508
2006-01-07 18:07:32 +00:00
Armijn Hemel
77b661cfab e2fsprogs dynamically loads some library, even if it's statically linked.
svn path=/nixu/trunk/; revision=4505
2006-01-07 15:42:59 +00:00
Armijn Hemel
9cbf8a84fb enable swap during install
svn path=/nixu/trunk/; revision=4503
2006-01-07 14:36:13 +00:00
Armijn Hemel
bdf2a61d91 add /var/run/usb. This is needed for hotplugging. Actually, this is probably
the wrong place to make these directories. After all, if we build this into
a real installer what do we know what to install? Perhaps we will use a
completely different hotplug implementation that won't use this directory.
Ah well, future work ;)

svn path=/nixu/trunk/; revision=4502
2006-01-07 01:24:29 +00:00
Armijn Hemel
f20d80957c add some testscripts for generating kernel modules layout. Right now too
much cruft gets symlinked, needs weeding and documenting...lots of
documenting....

svn path=/nixu/trunk/; revision=4501
2006-01-06 15:51:19 +00:00
Armijn Hemel
dfa61299fe add module_init_tools/bin to the initial path on tty1
svn path=/nixu/trunk/; revision=4488
2006-01-04 18:19:23 +00:00
Armijn Hemel
d124bd9434 some more tweaks. Enable extra logins on tty2 and tty3. Default root password
is empty.

svn path=/nixu/trunk/; revision=4429
2005-12-24 21:15:24 +00:00
Armijn Hemel
fe355bba78 replace a lot of tools we initially use with statically linked versions.
This reduces the ramdisk installer size with a few megabytes when gzipped,
but with about 40 MB when unpacked in memory.

There are a few improvements possible:

- strip the binaries. This saves another few MBs.
- only copy the binaries we really need to /bin or /sbin. This could reduce
the size of the installer a lot, especially with util-linux, of which we
don't use that many tools at all.
- try to move some packages we link with glibc right now (like util-linux) to
dietlibc. This will not work for bash, already tried that.
- try to use busybox as a replacement for everything.

svn path=/nixu/trunk/; revision=4428
2005-12-24 11:50:42 +00:00