Commit Graph

93 Commits

Author SHA1 Message Date
Eelco Dolstra
f546cad4b7 * Some fixes.
svn path=/nixu/trunk/; revision=6923
2006-11-01 12:07:22 +00:00
Eelco Dolstra
2b995a1150 * Turns out that nested backticks (like $(... $(...))) are evil, since
bash doesn't check the exit status of the inner commands.  Replace
  the $(nix-store -r $(nix-instantiate)) calls with nix-build.

* Some of the diet packages are gone now, use the dietlibc stdenv.

svn path=/nixu/trunk/; revision=6920
2006-10-31 20:28:35 +00:00
Eelco Dolstra
c55460a027 * Use tar 1.15.1 for now (1.16 is buggy).
* Honour $TMPDIR (my /tmp is full).

svn path=/nixu/trunk/; revision=6918
2006-10-31 17:39:55 +00:00
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
da7b60735b -r, not -q
svn path=/nixu/trunk/; revision=6589
2006-09-23 23:06:28 +00:00
Armijn Hemel
62f61928e7 also copy a statically linked ncurses to the installer, so at least we get all the right terminfo thingies.
svn path=/nixu/trunk/; revision=6326
2006-08-30 00:40:15 +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
b5bdf9b453 -r, not -q
svn path=/nixu/trunk/; revision=6295
2006-08-28 13:41:41 +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
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
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
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
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
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
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
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
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
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
83aa84be94 no longer hardcode the directory where we put our stuff in (previously /tmp/arch), but use mktemp instead, which is a *lot* cleaner. Update documentation accordingly.
svn path=/nixu/trunk/; revision=4047
2005-10-11 10:48:10 +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
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
f64cf78dfa fix for cpio. Between cpio 2.5 and 2.6 semantics of the -c flag (which we
used) has changed. Switch to a flag which is unlikely to change (-H newc)

svn path=/nixu/trunk/; revision=3756
2005-08-31 09:39:41 +00:00
Armijn Hemel
eac09bcb31 cleanups
commit 3750 :)

svn path=/nixu/trunk/; revision=3750
2005-08-30 13:16:16 +00:00
Armijn Hemel
1581e0c08e remove dependency on /nix, so we can build NixOS inside NixOS
svn path=/nixu/trunk/; revision=3747
2005-08-30 11:23:56 +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
fff45e114e - register all valid paths inside the Nix database. The .drv files are not included, this is a purely binary deployment.
- add grub to the initial environment

svn path=/nixu/trunk/; revision=3717
2005-08-27 00:36:07 +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
Armijn Hemel
9c75e2cb14 fill-disk wants grep
svn path=/nixu/trunk/; revision=3671
2005-08-23 16:53:39 +00:00
Armijn Hemel
d707a61ac2 add nano
svn path=/nixu/trunk/; revision=3670
2005-08-23 15:56:17 +00:00