Commit graph

94 commits

Author SHA1 Message Date
Armijn Hemel c8b64ef689 we can safely use the stable version again
svn path=/nixu/trunk/; revision=6680
2006-10-08 22:05:06 +00:00
Armijn Hemel edcdb69c57 make it easier to relocate the location of nixpkgs.
svn path=/nixu/trunk/; revision=6602
2006-09-24 22:03:33 +00:00
Armijn Hemel e876f67580 pass nano. Not that it actually works, because it also needs ncurses for terminal information...
svn path=/nixu/trunk/; revision=6321
2006-08-30 00:15:02 +00:00
Armijn Hemel 964780812d fix NIXOS-38
svn path=/nixu/trunk/; revision=6317
2006-08-29 21:58:33 +00:00
Armijn Hemel 1323e55ad3 remove the root(hd0,0) line, because it wasn't needed. At least, not in our
situation. I don't know how it will it work with something like dual booting
and chain loading, so that is unsupported right now :P

svn path=/nixu/trunk/; revision=6282
2006-08-27 22:18:39 +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 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 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 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 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 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 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 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
Armijn Hemel f130123af5 also make /var/lock and /var/lock/subsys: needed for ssh and others
svn path=/nixu/trunk/; revision=4414
2005-12-22 19:34:36 +00:00
Armijn Hemel ec790cdf85 add a seperate dir for SSH-keys. Remove the /etc-secret dir, we probably won't be using it anyway...
svn path=/nixu/trunk/; revision=4362
2005-12-13 14:28:55 +00:00
Armijn Hemel 5d0899c0bc add a bunch of stuff for SSH user privilege seperation (yes, we want this)
svn path=/nixu/trunk/; revision=4361
2005-12-13 14:24:31 +00:00
Armijn Hemel 22195d35a5 make /etc/sysconfig so we can store information, such as hardware configuration of the box (needed for Kudzu)
svn path=/nixu/trunk/; revision=4107
2005-10-19 14:14:08 +00:00
Armijn Hemel b084dc18b3 also add coreutils to Nix default profile
svn path=/nixu/trunk/; revision=4106
2005-10-19 14:07:21 +00:00
Armijn Hemel 569bbf75b1 don't make /bin/bash anymore
svn path=/nixu/trunk/; revision=4095
2005-10-16 21:48:33 +00:00
Armijn Hemel 583ce934a8 - add NIC driver info for vmware
- add profile support

svn path=/nixu/trunk/; revision=4069
2005-10-11 19:39:41 +00:00
Armijn Hemel 18a56f26a2 argh! If we want to have # echoed into a file, make sure to enclose it in
brackets...

svn path=/nixu/trunk/; revision=3980
2005-09-30 16:50:35 +00:00
Armijn Hemel f8cea32cf1 add some stuff, incl. some things to /etc/inittab, but keep them outcommented
svn path=/nixu/trunk/; revision=3976
2005-09-30 15:22:08 +00:00
Armijn Hemel 9f0a098056 fix error in detection of NixOS install CD
svn path=/nixu/trunk/; revision=3772
2005-09-02 16:47:58 +00:00
Armijn Hemel 066c85b4f0 run a busy loop after we've finished the install, instead of kernel panicking
svn path=/nixu/trunk/; revision=3762
2005-08-31 16:38:34 +00:00
Armijn Hemel f74115278f add a shell on tty2
svn path=/nixu/trunk/; revision=3760
2005-08-31 12:58:46 +00:00
Armijn Hemel 14b2ad157c add logging capabilities. Install log is now copied to /root/install-log.
svn path=/nixu/trunk/; revision=3759
2005-08-31 12:02:28 +00:00
Armijn Hemel d227f0e83a temporarily outcomment mingetty
svn path=/nixu/trunk/; revision=3757
2005-08-31 10:11:07 +00:00
Armijn Hemel 142cef0a9e switch to dietlibc coreutils in the initrams. Use thit up until a certain point, after which we switch to the normal coreutils. Oh, this should really be refactored...
svn path=/nixu/trunk/; revision=3738
2005-08-28 16:56:48 +00:00
Armijn Hemel de289092b2 - various cleanups
- have mingetty listen on tty2 (but this still fails because of missing /dev/log
- get rid of /init on the targetdrive, solely use /sbin/init (and even that has to go one day)
- use dietlibc statically linked e2fsprogs for the installer. More to come :)

svn path=/nixu/trunk/; revision=3734
2005-08-28 00:51:34 +00:00
Armijn Hemel a3ae8f4143 remove some debugging statements
svn path=/nixu/trunk/; revision=3716
2005-08-27 00:04:30 +00:00
Armijn Hemel 796f3bb691 add grub configuration file (menu.lst) during installation
svn path=/nixu/trunk/; revision=3715
2005-08-26 22:21:29 +00:00
Armijn Hemel 3b7a4df52e use tar instead of cp, which should be a bit faster (but is it really?)
svn path=/nixu/trunk/; revision=3709
2005-08-26 18:38:57 +00:00
Armijn Hemel 789f716808 use tar for copying nixpkgs instead of cp to speed up installation process.
Commit 3700 :)

svn path=/nixu/trunk/; revision=3700
2005-08-26 16:06:52 +00:00
Armijn Hemel 3dce29bb92 make /var/run in the installdisk, add some code for registering the copied
Nix store in the Nix database, still unfinished

svn path=/nixu/trunk/; revision=3690
2005-08-25 23:10:36 +00:00