From f546cad4b7e721a0b499940cc0f2286015febd19 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Nov 2006 12:07:22 +0000 Subject: [PATCH] * Some fixes. svn path=/nixu/trunk/; revision=6923 --- fill-disk.sh | 23 +++++++++++++---------- make-disk.sh | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/fill-disk.sh b/fill-disk.sh index 52078fad147..43edcb4dfab 100755 --- a/fill-disk.sh +++ b/fill-disk.sh @@ -1,4 +1,6 @@ -#! @bash@/bin/sh -e +#! @bash@/bin/sh + +set -e export PATH=/bin:/sbin:@bash@/bin:@findutils@/bin:@e2fsprogs@/sbin:@grub@/sbin:@sysvinitPath@/sbin:@eject@/bin:@dhcp@/sbin:@modutils@/sbin:@busybox@/bin:@busybox@/sbin @@ -12,7 +14,7 @@ bootPath=@bootPath@ modutils=@modutils@ mingetty=@mingetty@ -nixpkgs=/nixpkgs/trunk +nixpkgs=/nixpkgs echo formatting target device @@ -188,10 +190,10 @@ echo bringing up networking... #labmachine has 3c59x #modprobe 3c59x #vmware has pcnet32 -modprobe pcnet32 -dhclient eth0 +#modprobe pcnet32 +#dhclient eth0 -cp /etc/resolv.conf $root/etc/resolv.conf +#cp /etc/resolv.conf $root/etc/resolv.conf #nic=`kudzu -p | grep eth | sort | uniq | cut -d ' ' -f 2` @@ -204,7 +206,8 @@ echo verifying Nix DB... $NIX/nix-store --verify echo copying nixpkgs... -tar --directory=$root -zxf /cdrom/nixpkgs.tgz +mkdir -p $root/nixpkgs/pkgs +tar --directory=$root/nixpkgs/pkgs -zxf /cdrom/nixpkgs.tgz make_dir 0755 /tmp/scripts cp -fa /cdrom/scripts $root/tmp @@ -344,13 +347,13 @@ echo clearing substitutes $NIX/nix-store --clear-substitutes -echo clearing network information +#echo clearing network information -rm $root/etc/resolv.conf +#rm $root/etc/resolv.conf -echo copying install log +#echo copying install log -cp /tmp/install-log $root/root +#cp /tmp/install-log $root/root # bizar. busybox umount doesn't like things with --bind it seems. echo umounting filesystem diff --git a/make-disk.sh b/make-disk.sh index 46eb96a1fe0..4d0a12e08f9 100755 --- a/make-disk.sh +++ b/make-disk.sh @@ -156,7 +156,7 @@ $coreutils/bin/mkdir -p ${initdir}/var/state/dhcp echo copying nixpkgs #svn export ${nixpkgs} ${archivesDir}/pkgs -tar -zcf ${archivesDir}/nixpkgs.tgz ${nixpkgs} +(cd $nixpkgs && tar -zcf ${archivesDir}/nixpkgs.tgz .) #echo copying packages from store