mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
make sure /etc/resolv.conf is available in our chroot
svn path=/nixu/trunk/; revision=6077
This commit is contained in:
parent
9626049ec5
commit
297d159c8d
13
fill-disk.sh
13
fill-disk.sh
@ -248,12 +248,13 @@ NIX=@nix@/bin
|
||||
|
||||
echo bringing up networking...
|
||||
|
||||
modprobe 3c59x
|
||||
#labmachine has 3c59x
|
||||
#modprobe 3c59x
|
||||
#vmware has pcnet32
|
||||
modprobe pcnet32
|
||||
dhclient eth0
|
||||
|
||||
while true; do
|
||||
sleep 60;
|
||||
done
|
||||
cp /etc/resolv.conf $root/etc/resolv.conf
|
||||
|
||||
#nic=`kudzu -p | grep eth | sort | uniq | cut -d ' ' -f 2`
|
||||
|
||||
@ -407,6 +408,10 @@ echo clearing substitutes
|
||||
|
||||
$NIX/nix-store --clear-substitutes
|
||||
|
||||
echo clearing network information
|
||||
|
||||
rm $root/etc/resolv.conf
|
||||
|
||||
echo copying install log
|
||||
|
||||
cp /tmp/install-log $root/root
|
||||
|
@ -49,7 +49,7 @@ kernelscripts=$($NIX/nix-store -r $(echo '(import ./pkgs.nix).kernelscripts' | $
|
||||
### make NAR files for everything we want to install and some more. Make sure
|
||||
### the right URL is in there, so specify /cdrom and not cdrom
|
||||
#$NIX/nix-push --copy $archivesDir $manifest --target file:///cdrom $storeExpr $($NIX/nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX/nix-instantiate -)) $kernelscripts
|
||||
$NIX/nix-push --copy $archivesDir2 $manifest --target http://losser.labs.cs.uu.nl/~armijn/.nix/ $storeExpr $($NIX/nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX/nix-instantiate -)) $kernelscripts
|
||||
$NIX/nix-push --copy $archivesDir2 $manifest --target http://losser.labs.cs.uu.nl/~armijn/.nix $storeExpr $($NIX/nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX/nix-instantiate -)) $kernelscripts
|
||||
|
||||
# Location of sysvinit?
|
||||
sysvinitPath=$($NIX/nix-store -r $(echo '(import ./pkgs.nix).sysvinit' | $NIX/nix-instantiate -))
|
||||
|
Loading…
Reference in New Issue
Block a user