Commit graph

67 commits

Author SHA1 Message Date
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
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 38cb12017a fix typo, add some more echo statements, minor cleanup
svn path=/nixu/trunk/; revision=3591
2005-08-16 21:46:08 +00:00
Armijn Hemel 91b9cabf9b svn export nixpkgs, don't copy it (gets rid of about 34 MB)
svn path=/nixu/trunk/; revision=3589
2005-08-16 18:58:23 +00:00
Armijn Hemel 597f963528 more cleanups
- remove some debugging code
- add better descriptions for a few actions

svn path=/nixu/trunk/; revision=3582
2005-08-14 15:08:15 +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 655ef5ac38 actually build grub too
svn path=/nixu/trunk/; revision=3565
2005-08-12 23:41:57 +00:00
Armijn Hemel a866ceef3e add grub to the path
svn path=/nixu/trunk/; revision=3564
2005-08-12 23:40:12 +00:00
Armijn Hemel edbd58ca43 search for NixOS CD, mount it, copy packages onto the target disk for real
now. Only IDE drives supported so far.

svn path=/nixu/trunk/; revision=3559
2005-08-12 16:26:51 +00:00
Armijn Hemel 8aaf4e9a75 touch a file "NIXOS" so we can more easily find the NixOS install CD
svn path=/nixu/trunk/; revision=3546
2005-08-11 14:06:04 +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 8151b78162 add necessary packages. Now it works and we have to decide:
- either add the device with mknod
- use hotplug to build all devices dynamically

svn path=/nixu/trunk/; revision=3525
2005-08-04 14:45:27 +00:00
Armijn Hemel 81bfae51f7 - set timeout for isolinux to 1 minute
- copy util-linux to ramdisk
  TODO:
   - do this with other tools as well in a bit more generic way

svn path=/nixu/trunk/; revision=3524
2005-08-03 18:14:47 +00:00
Armijn Hemel 93bcd71b15 This update fixes a few critical errors:
- cd to the right directory when making the initramfs image (stupid stupid stupid mistake, cost me a day of work!)
- make a bunch of devices inside the ramdisk
- copy the kernel and all modules to the CD image
- set the #! line in fill-disk to the right place (as in, append /bin/sh, another stupidity, which was luckily easily spot after fixing the first mistake, which was far more important)


svn path=/nixu/trunk/; revision=3523
2005-08-03 17:59:23 +00:00
Armijn Hemel 45492df16b reduce the size of the initrd a lot
svn path=/nixu/trunk/; revision=3514
2005-08-03 12:00:42 +00:00
Armijn Hemel e6b3f223f6 whoops, not just query for, but actually *build* syslinux :o
svn path=/nixu/trunk/; revision=3511
2005-08-02 12:29:23 +00:00
Armijn Hemel 9c56696e75 support for initrd. Right now the image is *WAY* too big, so it boots with
a kernel panic. initrd should be brought back to a few megabytes instead
so it can be safely unzipped in memory.

Ideas:
- klibc instead of glibc
- leave out a lot of packages in the initrd:
  - gcc
  - linux-headers
  - ...
- have a minimal "stage 1", which mounts the CD (figure out how) and
remounts part of the CD on /nix and /nixpkgs

svn path=/nixu/trunk/; revision=3502
2005-08-01 17:30:45 +00:00
Armijn Hemel 96776b9065 use "vmlinuz" instead of "linux", small cosmetic thing
svn path=/nixu/trunk/; revision=3483
2005-07-31 19:04:58 +00:00
Armijn Hemel 16de9c1c61 add configuration for isolinux
svn path=/nixu/trunk/; revision=3482
2005-07-31 19:01:59 +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 8f7215a779 various improvements + stubs for later work, definitely not production ready
svn path=/nixu/trunk/; revision=3473
2005-07-29 16:54:36 +00:00