speed up the installation a *lot*, at the price of a bit more diskspace (49 MB currently)

svn path=/nixu/trunk/; revision=6034
This commit is contained in:
Armijn Hemel 2006-08-03 16:19:04 +00:00
parent fcc3b33cb9
commit 6e030f736c
2 changed files with 4 additions and 16 deletions

View File

@ -287,8 +287,8 @@ cp /cdrom/mystorepaths $root/tmp
echo copying store
cp -fva /nix/store/* $root/nix/store
tar cf - /nix/store | tar --directory=$root -xvf -
#cp -fva /nix/store/* $root/nix/store
tar --directory=$root -zxvf /cdrom/nixstore.tgz
echo registering valid paths...

View File

@ -84,6 +84,8 @@ do
$gnutar/bin/tar -cf - $i | $gnutar/bin/tar --directory=$archivesDir -xf -
done
tar zcf ${archivesDir}/nixstore.tgz $combideps
utilLinux=$(nix-store -r $(echo '(import ./pkgs.nix).utillinuxStatic' | $NIX/nix-instantiate -))
coreUtilsDiet=$($NIX/nix-store -qR $(nix-store -r $(echo '(import ./pkgs.nix).coreutilsDiet' | $NIX/nix-instantiate -)))
@ -154,24 +156,10 @@ $coreutils/bin/mkdir ${initdir}/var/run
echo copying nixpkgs
#svn export ${nixpkgs} ${archivesDir}/pkgs
#$coreutils/bin/cp -fa ${nixpkgs} ${archivesDir}
tar -zcf ${archivesDir}/nixpkgs.tgz ${nixpkgs}
#echo copying packages from store
#cp -fa --parents ${nixDeps} ${archivesDir}
#cp -fvau --parents ${utilLinux} ${archivesDir}
#cp -fvau --parents ${Grub} ${archivesDir}
##cp -fau --parents ${gnuSed} ${archivesDir}
##cp -fau --parents ${gnuGrep} ${archivesDir}
#cp -fvau --parents ${Kernel} ${archivesDir}
#cp -fvau --parents ${SysVinit} ${archivesDir}
#cp -fvau --parents ${BootPath} ${archivesDir}
#cp -fvau --parents ${udev} ${archivesDir}
#cp -fvau --parents ${dhcp} ${archivesDir}
#cp -fvau --parents ${nano} ${archivesDir}
#cp -fvau --parents ${gnutar} ${archivesDir}
echo copying scripts
$coreutils/bin/mkdir ${archivesDir}/scripts