mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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:
parent
fcc3b33cb9
commit
6e030f736c
@ -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...
|
||||
|
||||
|
16
make-disk.sh
16
make-disk.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user