3
0
Fork 0
forked from mirrors/nixpkgs

add necessary packages. Now it works and we have to decide:

- either add the device with mknod
- use hotplug to build all devices dynamically

svn path=/nixu/trunk/; revision=3525
This commit is contained in:
Armijn Hemel 2005-08-04 14:45:27 +00:00
parent 81bfae51f7
commit 8151b78162
2 changed files with 17 additions and 12 deletions

View file

@ -15,7 +15,7 @@ mount -t sysfs sys /sys
# consoles
mknod -m 0600 /dev/console c 5 1
#mknod -m 0600 /dev/console c 5 1
mknod -m 0600 /dev/ttyS0 c 4 64
mknod -m 0600 /dev/ttyS1 c 4 65
mknod -m 0600 /dev/ttyS2 c 4 66
@ -49,13 +49,15 @@ mknod -m 0644 /dev/urandom c 1 9
echo "blaat"
if ! test -n "$1"
then
echo "need harddisk device for installing!"
exit
else
device=$1
fi
#if ! test -n "$1"
#then
# echo "need harddisk device for installing!"
# exit
#else
# device=$1
#fi
device=/dev/hda1
make_dir() {
mode=$1
@ -75,7 +77,9 @@ root=/tmp/mnt
mkdir -p /tmp/mnt
mount $device /tmp/mnt
mount -t ext2 $device /tmp/mnt
cd /sys; echo *
# mkdir -p /nix
# mkdir -p /nixpkgs/trunk/pkgs

View file

@ -44,6 +44,7 @@ echo $($NIX_CMD_PATH/nix-store -qR $(nix-store -r $(echo '(import ./pkgs.nix).ni
#echo $nixDeps > $storePaths
utilLinux=$($NIX_CMD_PATH/nix-store -qR $(nix-store -r $(echo '(import ./pkgs.nix).utillinux' | $NIX_CMD_PATH/nix-instantiate -)))
coreUtils=$($NIX_CMD_PATH/nix-store -qR $(nix-store -r $(echo '(import ./pkgs.nix).coreutils' | $NIX_CMD_PATH/nix-instantiate -)))
bash=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).bash' | $NIX_CMD_PATH/nix-instantiate -))
coreutils=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).coreutils' | $NIX_CMD_PATH/nix-instantiate -))
@ -131,13 +132,13 @@ echo creating ramdisk
rm -f ${initrd}
cp ${archivesDir}/scripts/fill-disk.sh ${initdir}/init
cp ${bash}/bin/* ${initdir}/bin
#cp -f /nix/store/570hmhmx3v57605cqg9yfvvyh0nnb8k8-bash ${initdir}/bin/sh
chmod u+x ${initdir}/init
cp -fau --parents ${bashdeps} ${initdir}
cp -fau --parents ${utilLinux} ${initdir}
cp -fau --parents ${coreUtils} ${initdir}
#(cd ${initdir}; find . |cpio -c -o) | gzip -9 > ${initrd}
(cd ${archivesDir}/initdir; find . |cpio -c -o) | gzip -9 > ${initrd}
(cd ${initdir}; find . |cpio -c -o) | gzip -9 > ${initrd}
#(cd ${archivesDir}/initdir; find . |cpio -c -o) | gzip -9 > ${initrd}
cp ${initrd} ${archivesDir}/isolinux