This website requires JavaScript.
Explore
Help
Register
Sign In
alioth
/
nixpkgs
Watch
3
Star
0
Fork
You've already forked nixpkgs
0
forked from
mirrors/nixpkgs
Code
Releases
Activity
54f6e4fc71
nixpkgs
/
run.sh
8 lines
103 B
Bash
Raw
Normal View
History
Unescape
Escape
* Scripts to set up and run the absolute minimal pure Nix 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
2004-02-14 22:56:51 +00:00
#! /bin/sh -e
image
=
/tmp/disk.img
* 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
linux
ubd0
=
"
$image
"
mem
=
256M
\
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
eth0
=
tuntap,tap1
\
* 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
init
=
"/init"
Copy permalink