diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-03-13T14·24+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-03-13T14·24+0000 |
commit | 75d788b0f24e8de033a22c0869032549d602d4f6 (patch) | |
tree | fd60e3cb1a8cdfb1d83db54a2ce0e75d83596412 /sys/start | |
parent | 841fcbd04755c7a2865c51c1e2d3b045976b7452 (diff) |
* Initial version of nix.
Diffstat (limited to 'sys/start')
-rwxr-xr-x | sys/start | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sys/start b/sys/start new file mode 100755 index 000000000000..f822b2fa7e13 --- /dev/null +++ b/sys/start @@ -0,0 +1,40 @@ +#! /pkg/prog-bootstrap/bin/sh + +# This directory contains nix. +export PATH=/pkg/sys/bin + +# Add in the utilities needed for booting. +export PATH=$PATH:`nix get-pkg prog-bootstrap`/bin + +echo +echo Starting up... + +echo Mounting file systems... +mount -n -o remount,rw /dev/root / +mount -n -t proc none /proc +mount -n -t hostfs none /mnt/host + +echo Registering available src packages... +( cd /src + for i in *; do + if test -d $i; then + echo " $i" + nix register-pkg $i /src/$i + fi + done +) + +export PATH=`nix get-pkg coreutils-4.5.7`/bin:$PATH + +echo +echo "=== starting interactive shell ===" + +sh + +echo +echo Shutting down... + +umount /proc +#sync +mount -n -o remount,ro /dev/root / +#sync |