Commit Graph

47 Commits

Author SHA1 Message Date
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
Eelco Dolstra
319489bf8b * Don't use hardcoded /nixpkgs.
svn path=/nixu/trunk/; revision=6914
2006-10-31 12:15:08 +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
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
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
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
97690c23da cosmetic change
svn path=/nixu/trunk/; revision=6036
2006-08-03 18:00:32 +00:00
Armijn Hemel
2c87da322d use less packages
svn path=/nixu/trunk/; revision=6024
2006-08-02 22:34:13 +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
c984b735bd also use mkisofs from Nixpkgs
svn path=/nixu/trunk/; revision=5563
2006-07-03 09:32:15 +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
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
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
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
d707a61ac2 add nano
svn path=/nixu/trunk/; revision=3670
2005-08-23 15:56:17 +00:00
Armijn Hemel
fb451cc09f use the dhcp wrapper, add a directory needed for DHCP
svn path=/nixu/trunk/; revision=3656
2005-08-21 19:56:30 +00:00
Armijn Hemel
4c6230b0a6 add dhcp package. This doesn't work quite nicely though, needs some resolving...
svn path=/nixu/trunk/; revision=3653
2005-08-21 17:39:47 +00:00
Armijn Hemel
6e7614fdb0 use module-init-tools instead of modutils. Now we can insert modules :)
svn path=/nixu/trunk/; revision=3650
2005-08-20 21:49:53 +00:00
Armijn Hemel
b39fca2ade - add udev (not yet in use)
- clean up 100 MB of unused stuff on the CD

svn path=/nixu/trunk/; revision=3637
2005-08-19 15:26:01 +00:00
Armijn Hemel
0b4feb3a6c add hotplug here, temporarily disable e2fsck, so at least everything is mounted rw
svn path=/nixu/trunk/; revision=3630
2005-08-17 19:19:54 +00:00
Armijn Hemel
c7bd0ec473 get grub right, also copy all the packages needed for a nice booting system
svn path=/nixu/trunk/; revision=3575
2005-08-14 01:40:36 +00:00
Armijn Hemel
592b736d33 add modutils, start with code that will find the right CD player our install CD is in.
svn path=/nixu/trunk/; revision=3540
2005-08-09 16:51:26 +00:00
Armijn Hemel
bc3ffa3458 get NixOS more towards an installable state. Stuff now actually gets installed on the disk itself. Missing is functionality to detect the right drive with
the install CD in it.

svn path=/nixu/trunk/; revision=3531
2005-08-05 13:48:22 +00:00
Armijn Hemel
b9617c9541 we need parted in the installer and on the target disk for sure...
svn path=/nixu/trunk/; revision=3487
2005-07-31 20:40:57 +00:00
Armijn Hemel
ec898a881e build kernel and copy it to the diskimage. Now all there is left is an
initial ramdisk.

svn path=/nixu/trunk/; revision=3481
2005-07-31 15:25:39 +00:00
Armijn Hemel
cc0935ebe8 - added some more comments, generate ISO file
- added stubs for making a bootable CD with isolinux. Still missing are
kernel, boot configuration and more

svn path=/nixu/trunk/; revision=3480
2005-07-31 13:11:44 +00:00
Armijn Hemel
5c6d52dbd8 - add more directories
- make /dev/null inside a chroot to install

svn path=/nixu/trunk/; revision=3366
2005-07-19 15:39:32 +00:00
Armijn Hemel
8122aebd19 add grub
svn path=/nixu/trunk/; revision=3353
2005-07-18 09:47:42 +00:00
Armijn Hemel
1054efb792 apart from nixpkgs also copy the NixU scripts
svn path=/nixu/trunk/; revision=3298
2005-07-06 14:42:41 +00:00
Armijn Hemel
1e607c9221 rewrite nixu scripts to use nix-push. Install the whole NixU environment in
two main steps:

1 - first build everything (nix-push)
2 - install everything on a seperate disk/machine (nix-pull)

svn path=/nixu/trunk/; revision=3291
2005-07-05 13:52:49 +00:00
Armijn Hemel
f763a7c40a change to new packages, with new nix, new bash, new everything! It's shiny and new!
svn path=/nixu/trunk/; revision=1730
2004-11-09 10:28:21 +00:00
Armijn Hemel
511b3fd83f add more packages that are necessary for a complete build
svn path=/nixu/trunk/; revision=1246
2004-08-06 17:22:24 +00:00
Armijn Hemel
85bbb5e447 add a whole bunch of packages to make NixU a bit more useful:
- ssh
- shadowutils
- ping
- vim
- less
- strace
- ...

svn path=/nixu/trunk/; revision=1243
2004-08-06 13:52:39 +00:00
Eelco Dolstra
91a5fe9eb0 * Networking now works in the UML machine. Masquerading for the tun
device should be enabled on the host in order for the UML machine to
  be able to talk to the Internet.

svn path=/nixu/trunk/; revision=806
2004-02-19 12:49:00 +00:00
Eelco Dolstra
3514c5658b * Proper sysvinit boot/halt. At runlevel 2, creates login shells at
virtual consoles 0 and 1.  To shutdown, do `init 0' (`halt' and
  `shutdown' don't work because they call /sbin/init).

svn path=/nixu/trunk/; revision=803
2004-02-18 14:56:32 +00:00
Eelco Dolstra
1e87e75d07 * Use sysvinit's init to start the system. This has the happy
side-effect of initialising the console properly (i.e., enabling
  Ctrl-[C, Z]).

svn path=/nixu/trunk/; revision=801
2004-02-18 10:56:07 +00:00
Eelco Dolstra
1f7a8c8ae9 * Started setting up a proper init environment.
svn path=/nixu/trunk/; revision=785
2004-02-16 09:41:00 +00:00