diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-03-14T16·43+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-03-14T16·43+0000 |
commit | 8999f923ea1a459b3e4d404745b001323647711a (patch) | |
tree | 97b9ca5309e2f34b2f671b6ba178e9d05926c411 /sys/start | |
parent | 18ebf518de325c7059648bfd6df464d8d5204bb3 (diff) |
* Improved Nix. Resources (package descriptors and other source
files) are now referenced using their cryptographic hashes. This ensures that if two package descriptors have the same contents, then they describe the same package. This property is not as trivial as it sounds: generally import relations cause this property not to hold w.r.t. temporality. But since imports also use hashes to reference other packages, equality follows by induction.
Diffstat (limited to 'sys/start')
-rwxr-xr-x | sys/start | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/start b/sys/start index f822b2fa7e13..b36cde297436 100755 --- a/sys/start +++ b/sys/start @@ -4,7 +4,7 @@ export PATH=/pkg/sys/bin # Add in the utilities needed for booting. -export PATH=$PATH:`nix get-pkg prog-bootstrap`/bin +export PATH=$PATH:`nix getpkg 5703121fe19cbeeaee7edd659cf4a25b`/bin echo echo Starting up... @@ -14,17 +14,15 @@ 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 +echo Registering available sources... +( if cd /src; then + for i in *; do + nix reg $i + done + fi ) -export PATH=`nix get-pkg coreutils-4.5.7`/bin:$PATH +export PATH=`nix getpkg coreutils-4.5.7`/bin:$PATH echo echo "=== starting interactive shell ===" |