- 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
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
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
environment; that is, an operating system environment in which there
is (essentially) only a store.
The script `make-disk.sh' creates an ext2 disk image, creates a Nix
store in it, and copies the closure of the bash package (from
nixpkgs) to it. The script `run.sh' then starts bash in a UML
virtual machine.
The contents of the image after creation look like this:
$ ls -l
drwxr-xr-x 2 root root 1024 2004-02-14 19:13 dev
lrwxrwxrwx 1 root root 61 2004-02-14 23:34 init -> /nix/store/e40873ece7a010752ad72b4262b23d28-bash-2.05b/bin/sh
drwx------ 2 root root 12288 2004-02-14 19:13 lost+found
drwxr-xr-x 4 root root 1024 2004-02-14 19:13 nix
drwxr-xr-x 2 root root 1024 2004-02-14 19:13 proc
drwxrwxrwt 2 root root 1024 2004-02-14 19:13 tmp
The next step is to add all the other stuff that goes into a working
system (coreutils, etc.). BTW, if you don't have `ls' you can still
list directories by doing `echo *' :-)
Nix itself should also be Nixified so that it can be put into the
store.
svn path=/nixu/trunk/; revision=783